unix.7: The PID sent with SCM_CREDENTIALS must match an existing process

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-02-05 12:51:51 +01:00
parent e4c98f64d1
commit 863d6b7de0
1 changed files with 7 additions and 1 deletions

View File

@ -503,7 +503,8 @@ of this structure.
The credentials which the sender specifies are checked by the kernel.
A privileged process is allowed to specify values that do not match its own.
The sender must specify its own process ID (unless it has the capability
.BR CAP_SYS_ADMIN ),
.BR CAP_SYS_ADMIN ,
in which case the PID of any existing process may be specified),
its real user ID, effective user ID, or saved set-user-ID (unless it has
.BR CAP_SETUID ),
and its real group ID, effective group ID, or saved set-group-ID
@ -720,6 +721,11 @@ versus
.B ESOCKTNOSUPPORT
Unknown socket type.
.TP
.B ESRCH
While sending an ancillary message containing credentials
.RB ( SCM_CREDENTIALS ),
the caller specified a PID that does not match any existing process.
.TP
.B ETOOMANYREFS
This error can occur for
.BR sendmsg (2)