aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-10-25 13:54:05 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-06-10 10:40:17 +1200
commit7a27538327e3f079ef69d34044db407b5cc61707 (patch)
tree4e8c1c1f7fd56580e83b7466c45ae86954363966
parent730a8d48d1f67a3772d6d276a8365039e921c108 (diff)
downloadman-pages-7a27538327e3f079ef69d34044db407b5cc61707.tar.gz
cmsg.3, unix.7: Refer to seccomp_unotify(2) for an example of SCM_RIGHTS usage
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/cmsg.34
-rw-r--r--man7/unix.78
2 files changed, 9 insertions, 3 deletions
diff --git a/man3/cmsg.3 b/man3/cmsg.3
index 0de6091d33..c9a01e8c7d 100644
--- a/man3/cmsg.3
+++ b/man3/cmsg.3
@@ -246,6 +246,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_unotify (2).
.SH SEE ALSO
.BR recvmsg (2),
.BR sendmsg (2)
diff --git a/man7/unix.7 b/man7/unix.7
index 1253b925b0..fc2834fe40 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_unotify (2).
.SH SEE ALSO
.BR recvmsg (2),
.BR sendmsg (2),