From 744c8fa8d2b3e5efdee14de35ee426c26069124e Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 23 Dec 2018 18:10:25 +0100 Subject: [PATCH] unix.7: Improve wording describing socket option argument/return values Signed-off-by: Michael Kerrisk --- man7/unix.7 | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/man7/unix.7 b/man7/unix.7 index 2fae520e7..1fc27e3f1 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -284,15 +284,28 @@ Enables the receiving of the credentials of the sending process in an ancillary message. When this option is set and the socket is not yet connected a unique name in the abstract namespace will be generated automatically. -Expects an integer boolean flag. +.IP +The value given as an argument to +.BR setsockopt (2) +and returned as the result of +.BR getsockopt (2) +is an integer boolean flag. .TP .B SO_PASSSEC Enables receiving of the SELinux security label of the peer socket in an ancillary message of type .BR SCM_SECURITY (see below). -Expects an integer boolean flag. -Supported for UNIX domain datagram sockets +.IP +The value given as an argument to +.BR setsockopt (2) +and returned as the result of +.BR getsockopt (2) +is an integer boolean flag. +.IP +The +.B SO_PASSSEC +option is supported for UNIX domain datagram sockets .\" commit 877ce7c1b3afd69a9b1caeb1b9964c992641f52a since Linux 2.6.18; support for UNIX domain stream sockets was added