From: Michael Kerrisk Date: Sun, 25 Oct 2020 12:54:05 +0000 (+0100) Subject: cmsg.3, unix.7: Refer to seccomp_user_notif(2) for an example of SCM_RIGHTS usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69a765230be9c16eeed8643d5a27e44c2b261b6b;p=thirdparty%2Fman-pages.git cmsg.3, unix.7: Refer to seccomp_user_notif(2) for an example of SCM_RIGHTS usage Signed-off-by: Michael Kerrisk --- diff --git a/man3/cmsg.3 b/man3/cmsg.3 index 8d0ad66664..32766a6834 100644 --- a/man3/cmsg.3 +++ b/man3/cmsg.3 @@ -245,6 +245,10 @@ cmsg\->cmsg_len = CMSG_LEN(sizeof(myfds)); memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds)); .EE .in +.PP +For a complete code example that shows passing of file descriptors +over a UNIX domain socket, see +.BR seccomp_user_notif (2). .SH SEE ALSO .BR recvmsg (2), .BR sendmsg (2) diff --git a/man7/unix.7 b/man7/unix.7 index 8bdad50a36..71b47f91ec 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -1180,10 +1180,12 @@ main(int argc, char *argv[]) } .EE .PP -For an example of the use of -.BR SCM_RIGHTS +For examples of the use of +.BR SCM_RIGHTS , see -.BR cmsg (3). +.BR cmsg (3) +and +.BR seccomp_user_notif (2). .SH SEE ALSO .BR recvmsg (2), .BR sendmsg (2),