Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] userfaultfd.2: add EPERM error
@ 2019-12-18  6:13 Yang Xu
  2020-01-06  6:16 ` Yang Xu
  2020-01-21 21:05 ` Michael Kerrisk (man-pages)
  0 siblings, 2 replies; 3+ messages in thread
From: Yang Xu @ 2019-12-18  6:13 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, Yang Xu

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 man2/userfaultfd.2 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2
index 8d0a66ed9..2b432f043 100644
--- a/man2/userfaultfd.2
+++ b/man2/userfaultfd.2
@@ -440,6 +440,11 @@ reached.
 .TP
 .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.
+.\" cefdca0a86be517bc390fc4541e3674b8e7803b0
 .SH VERSIONS
 The
 .BR userfaultfd ()
-- 
2.18.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] userfaultfd.2: add EPERM error
  2019-12-18  6:13 [PATCH] userfaultfd.2: add EPERM error Yang Xu
@ 2020-01-06  6:16 ` Yang Xu
  2020-01-21 21:05 ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 3+ messages in thread
From: Yang Xu @ 2020-01-06  6:16 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man

Hi
Ping.
> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
> ---
>   man2/userfaultfd.2 | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2
> index 8d0a66ed9..2b432f043 100644
> --- a/man2/userfaultfd.2
> +++ b/man2/userfaultfd.2
> @@ -440,6 +440,11 @@ reached.
>   .TP
>   .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.
> +.\" cefdca0a86be517bc390fc4541e3674b8e7803b0
>   .SH VERSIONS
>   The
>   .BR userfaultfd ()
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] userfaultfd.2: add EPERM error
  2019-12-18  6:13 [PATCH] userfaultfd.2: add EPERM error Yang Xu
  2020-01-06  6:16 ` Yang Xu
@ 2020-01-21 21:05 ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-21 21:05 UTC (permalink / raw)
  To: Yang Xu; +Cc: mtk.manpages, linux-man

On 12/18/19 7:13 AM, Yang Xu wrote:
> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
> ---
>  man2/userfaultfd.2 | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2
> index 8d0a66ed9..2b432f043 100644
> --- a/man2/userfaultfd.2
> +++ b/man2/userfaultfd.2
> @@ -440,6 +440,11 @@ reached.
>  .TP
>  .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.
> +.\" cefdca0a86be517bc390fc4541e3674b8e7803b0
>  .SH VERSIONS
>  The
>  .BR userfaultfd ()

Hello Yang Xu,

Thanks. Patch applied (with some tweaks).

Cheers,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18  6:13 [PATCH] userfaultfd.2: add EPERM error Yang Xu
2020-01-06  6:16 ` Yang Xu
2020-01-21 21:05 ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git