33.SH NAME
44.\" //////////////////////////////////////////////////////////////////////////
55seccomp_notify_alloc, seccomp_notify_free, seccomp_notify_receive,
6- seccomp_notify_respond, seccomp_notify_id_valid, seccomp_notify_fd \- Manage seccomp notifications
6+ seccomp_notify_respond, seccomp_notify_id_valid, seccomp_notify_fd, seccomp_notify_addfd \- Manage seccomp notifications
77.\" //////////////////////////////////////////////////////////////////////////
88.SH SYNOPSIS
99.\" //////////////////////////////////////////////////////////////////////////
@@ -16,6 +16,7 @@ seccomp_notify_respond, seccomp_notify_id_valid, seccomp_notify_fd \- Manage sec
1616.BI " int seccomp_notify_respond(int " fd " , struct seccomp_notif_resp *" resp " )"
1717.BI " int seccomp_notify_id_valid(int " fd " , uint64_t " id " )"
1818.BI " int seccomp_notify_fd(const scmp_filter_ctx " ctx " )"
19+ .BI " int seccomp_notify_addfd(int " fd " , struct seccomp_notif_addfd *" addfd " )"
1920.sp
2021Link with \fI \- lseccomp \fP .
2122.fi
@@ -54,6 +55,11 @@ race conditions.
5455The
5556.BR seccomp_notify_fd ()
5657returns the notification fd of a filter after it has been loaded.
58+ .P
59+ The
60+ .BR seccomp_notify_addfd ()
61+ function enables the caller to install a file descriptor into the target's file descriptor table.
62+ The id field of the struct should be the same as the id from the request.
5763.\" //////////////////////////////////////////////////////////////////////////
5864.SH RETURN VALUE
5965.\" //////////////////////////////////////////////////////////////////////////
6773returns 0 if the id is valid, and -ENOENT if it is not.
6874.P
6975The
76+ .BR seccomp_notify_addfd ()
77+ returns the installed fd number on success, and one of error codes mentioned below on failure.
78+ .P
79+ The
7080.BR seccomp_notify_alloc (),
7181.BR seccomp_notify_receive (),
7282and
0 commit comments