aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2018-12-23 18:55:33 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-12-23 19:09:33 +0100
commit421d34c63217b119c61364843956e4b437e36c5b (patch)
tree1533429bcf22963e3e28ad03ab10dcca69640d4f /man7/unix.7
parent3d3cddde9418e9d1c45122a41fb29d0e69db8dc8 (diff)
downloadman-pages-421d34c63217b119c61364843956e4b437e36c5b.tar.gz
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>
Diffstat (limited to 'man7/unix.7')
-rw-r--r--man7/unix.714
1 files changed, 10 insertions, 4 deletions
diff --git a/man7/unix.7 b/man7/unix.7
index 1bc7804f0a..d9341a119f 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -280,10 +280,16 @@ by specifying
as the socket family.
.TP
.B SO_PASSCRED
-This socket option enables receipt
-of the credentials of the sending process in an
-.BR SCM_CREDENTIALS
-ancillary message.
+This socket option enables receipt of the credentials of
+the sending process in an
+.B SCM_CREDENTIALS ancillary
+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
When this option is set and the socket is not yet connected,
a unique name in the abstract namespace will be generated automatically.