userfaultfd.2: Tweaks to Yang Xu's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-01-21 21:49:06 +01:00
parent 339b899c4c
commit c4f13bc72a
1 changed files with 6 additions and 3 deletions

View File

@ -441,10 +441,13 @@ reached.
.B ENOMEM
Insufficient kernel memory was available.
.TP
.B EPERM
Unprivileged user(without SYS_CAP_PTRACE capability) uses this call when
set unprivileged_userfaultfd to 0. It was introduced since Linux 5.2.
.BR EPERM " (since Linux 5.2)"
.\" cefdca0a86be517bc390fc4541e3674b8e7803b0
The caller is not privileged (does not have the
.B CAP_SYS_PTRACE
capability), and
.I /proc/sys/vm/unprivileged_userfaultfd
has the value 0.
.SH VERSIONS
The
.BR userfaultfd ()