]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
cmsg.3, unix.7: Refer to seccomp_user_notif(2) for an example of SCM_RIGHTS usage
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Oct 2020 12:54:05 +0000 (13:54 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Oct 2020 21:08:30 +0000 (22:08 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/cmsg.3
man7/unix.7

index 8d0ad66664359b23955f0924a8384877cb2a9f32..32766a683465c9b3978de5263752a60c0f919df4 100644 (file)
@@ -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)
index 8bdad50a363ee659be0611c0589d0d009e29062c..71b47f91ec0b5fb729bee0d025d6f99a9a53b1f5 100644 (file)
@@ -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),