Skip to contentSkip to conversation

ptrace.2: copy retval info for SECCOMP_GET_FILTER to right section

PATCH In review Jann Horn 2 participants 2 messages Feb 8, 2018 – Feb 9, 2018 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Jann Horn

author
#0 lore raw

PATCH 1/1 ptrace.2: copy retval info for SECCOMP_GET_FILTER to right section

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.

---
 man2/ptrace.2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
man2/ptrace.2 +4 -1
index e1c3eec46..d78b8db2d 100644
@@ -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
Signature · 6 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20180208224600.257982-1-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org

#2 lore raw

Hello Jann,

Quoted 6 lines · Jann Horn

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

Quoted 22 lines
---
 man2/ptrace.2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
man2/ptrace.2 +4 -1
index e1c3eec46..d78b8db2d 100644
@@ -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
Signature · 7 lines
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html