unix.7: Clarify that SO_PASSCRED behavior

Clarify that SO_PASSCRED results in SCM_CREDENTIALS data in each
subsequently received message.

See https://bugzilla.kernel.org/show_bug.cgi?id=201805

Reported-by: Felipe Gasper <felipe@felipegasper.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-12-23 18:55:33 +01:00
parent 3d3cddde94
commit 421d34c632
1 changed files with 10 additions and 4 deletions

View File

@ -280,10 +280,16 @@ by specifying
as the socket family. as the socket family.
.TP .TP
.B SO_PASSCRED .B SO_PASSCRED
This socket option enables receipt This socket option enables receipt of the credentials of
of the credentials of the sending process in an the sending process in an
.BR SCM_CREDENTIALS .B SCM_CREDENTIALS ancillary
ancillary message. message in each subsequently message.
The returned credentials are those specified by the sender using
.BR SCM_CREDENTIALS ,
or a default that includes the sender's PID, real user ID, and real group ID,
if the sender did not specify
.B SCM_CREDENTIALS
ancillary data.
.IP .IP
When this option is set and the socket is not yet connected, When this option is set and the socket is not yet connected,
a unique name in the abstract namespace will be generated automatically. a unique name in the abstract namespace will be generated automatically.