unix.7: Improve wording describing socket option argument/return values

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-12-23 18:10:25 +01:00
parent 43e3c5518b
commit 744c8fa8d2
1 changed files with 16 additions and 3 deletions

View File

@ -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