seccomp.2: Minor edits to Tycho Andersen's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-09-26 15:18:38 +02:00
parent 9bc48145a6
commit 6fc8b8a0a1
1 changed files with 15 additions and 7 deletions

View File

@ -252,17 +252,21 @@ must be 0, and
.IR args
must be a pointer to an unsigned 32-bit filter return action.
.TP
.BR SECCOMP_GET_NOTIF_SIZES " (since Linux 4.21)"
Get the sizes of the seccomp userspace notification structures. Since the
structures include a struct seccomp_data which may grow in size, this command
can be used to determine how much memory to allocate for sending and receiving
notifications.
.BR SECCOMP_GET_NOTIF_SIZES " (since Linux 5.0)"
.\" commit 6a21cc50f0c7f87dae5259f6cfefe024412313f6
Get the sizes of the seccomp user-space notification structures.
Since the structures include a
.I "struct seccomp_data"
which may grow in size, this command can be used to determine how
much memory to allocate for sending and receiving notifications.
.IP
The value of
.IR flags
must be 0, and
.IR args
must be a pointer to a struct seccomp_notif_sizes, which looks like:
must be a pointer to a
.IR "struct seccomp_notif_sizes" ,
which has the following form:
.IP
.in +4n
.EX
@ -273,7 +277,11 @@ struct seccomp_notif_sizes
};
.EE
.in
.PP
.IP
See
.BR seccomp_unotify (2)
for further details.
.\"
.SS Filters
When adding filters via
.BR SECCOMP_SET_MODE_FILTER ,