Skip to content

Commit 19d6769

Browse files
ratakees
authored andcommitted
Documentation: seccomp: Fix typo in user notification
The close on exec flag is O_CLOEXEC, not O_EXEC. This patch just fixes the typo. Suggested-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Kees Cook <keescook@chromium.org> Fixes: 0ae71c7 ("seccomp: Support atomic "addfd + send reply"") Link: https://lore.kernel.org/r/20210702151927.263402-1-rodrigo@kinvolk.io
1 parent 9a03abc commit 19d6769

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/userspace-api/seccomp_filter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Userspace can also add file descriptors to the notifying process via
263263
``ioctl(SECCOMP_IOCTL_NOTIF_ADDFD)``. The ``id`` member of
264264
``struct seccomp_notif_addfd`` should be the same ``id`` as in
265265
``struct seccomp_notif``. The ``newfd_flags`` flag may be used to set flags
266-
like O_EXEC on the file descriptor in the notifying process. If the supervisor
266+
like O_CLOEXEC on the file descriptor in the notifying process. If the supervisor
267267
wants to inject the file descriptor with a specific number, the
268268
``SECCOMP_ADDFD_FLAG_SETFD`` flag can be used, and set the ``newfd`` member to
269269
the specific number to use. If that file descriptor is already open in the

0 commit comments

Comments
 (0)