Linux Manual Pages development
 help / color / mirror / Atom feed
* [PATCH] ptrace.2: copy retval info for SECCOMP_GET_FILTER to right section
@ 2018-02-08 22:46 Jann Horn
       [not found] ` <20180208224600.257982-1-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jann Horn @ 2018-02-08 22:46 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

The "RETURN VALUE" section made a claim that was incorrect for
PTRACE_SECCOMP_GET_FILTER. Explicitly describe the behavior of
PTRACE_SECCOMP_GET_FILTER in the "RETURN VALUE" section (as usual), but
leave the now duplicate description in the section describing
PTRACE_SECCOMP_GET_FILTER, since the PTRACE_SECCOMP_GET_FILTER section
would otherwise probably become harder to understand.

Signed-off-by: Jann Horn <jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
 man2/ptrace.2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/man2/ptrace.2 b/man2/ptrace.2
index e1c3eec46..d78b8db2d 100644
--- a/man2/ptrace.2
+++ b/man2/ptrace.2
@@ -2206,7 +2206,10 @@ the report is sent only once.
 On success, the
 .B PTRACE_PEEK*
 requests return the requested data (but see NOTES),
-while other requests return zero.
+the
+.B PTRACE_SECCOMP_GET_FILTER
+request returns the number of instructions in the BPF program, and
+other requests return zero.
 .PP
 On error, all requests return \-1, and
 .I errno
-- 
2.16.0.rc1.238.g530d649a79-goog

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH] ptrace.2: copy retval info for SECCOMP_GET_FILTER to right section
       [not found] ` <20180208224600.257982-1-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
@ 2018-02-09  5:59   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2018-02-09  5:59 UTC (permalink / raw)
  To: Jann Horn
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Jann,

On 02/08/2018 11:46 PM, Jann Horn wrote:
> The "RETURN VALUE" section made a claim that was incorrect for
> PTRACE_SECCOMP_GET_FILTER. Explicitly describe the behavior of
> PTRACE_SECCOMP_GET_FILTER in the "RETURN VALUE" section (as usual), but
> leave the now duplicate description in the section describing
> PTRACE_SECCOMP_GET_FILTER, since the PTRACE_SECCOMP_GET_FILTER section
> would otherwise probably become harder to understand.

Thanks! Patch applied.

Cheers,

Michael

> Signed-off-by: Jann Horn <jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
> ---
>  man2/ptrace.2 | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/man2/ptrace.2 b/man2/ptrace.2
> index e1c3eec46..d78b8db2d 100644
> --- a/man2/ptrace.2
> +++ b/man2/ptrace.2
> @@ -2206,7 +2206,10 @@ the report is sent only once.
>  On success, the
>  .B PTRACE_PEEK*
>  requests return the requested data (but see NOTES),
> -while other requests return zero.
> +the
> +.B PTRACE_SECCOMP_GET_FILTER
> +request returns the number of instructions in the BPF program, and
> +other requests return zero.
>  .PP
>  On error, all requests return \-1, and
>  .I errno
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2018-02-09  5:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-08 22:46 [PATCH] ptrace.2: copy retval info for SECCOMP_GET_FILTER to right section Jann Horn
     [not found] ` <20180208224600.257982-1-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2018-02-09  5:59   ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox