]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
seccomp.2, seccomp_unotify.2: Clarify that there can be only one SECCOMP_FILTER_FLAG_...
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 14 Oct 2020 06:05:15 +0000 (08:05 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 9 Jun 2021 22:40:17 +0000 (10:40 +1200)
Reported-by: Christian Brauner <christian@brauner.io>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/seccomp.2
man2/seccomp_unotify.2

index 1de791ce503db19c7952cbfa3d136e8de687b271..35eb1dd1fb65c764fe26fa0a7acad2b0ef731cbb 100644 (file)
@@ -225,6 +225,11 @@ return a new user-space notification file descriptor.
 When the filter returns
 .BR SECCOMP_RET_USER_NOTIF
 a notification will be sent to this file descriptor.
+.IP
+At most one seccomp filter using the
+.BR SECCOMP_FILTER_FLAG_NEW_LISTENER
+flag can be installed for a thread.
+.IP
 See
 .BR seccomp_unotify (2)
 for further details.
@@ -801,6 +806,12 @@ capability in its user namespace, or had not set
 before using
 .BR SECCOMP_SET_MODE_FILTER .
 .TP
+.BR EBUSY
+While installing a new filter, the
+.BR SECCOMP_FILTER_FLAG_NEW_LISTENER
+flag was specified,
+but a previous filter had already been installed with that flag.
+.TP
 .BR EFAULT
 .IR args
 was not a valid address.
index f31ac5379234c2078d93c12f7e00c2a5a8b2c711..a85ec5ac57b0a186ffdb8e631eb5c372f65a807a 100644 (file)
@@ -92,6 +92,7 @@ Consequently, the return value  of the (successful)
 .BR seccomp (2)
 call is a new "listening"
 file descriptor that can be used to receive notifications.
+Only one such "listener" can be established.
 .IP \(bu
 In cases where it is appropriate, the seccomp filter returns the action value
 .BR SECCOMP_RET_USER_NOTIF .