setgid.2: Clarify that setgid() changes all GIDs when caller has CAP_SETGID

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-03-22 09:54:37 +01:00
parent 599226abb6
commit 14c6baebf2
1 changed files with 3 additions and 2 deletions

View File

@ -38,8 +38,9 @@ setgid \- set group identity
.SH DESCRIPTION
.BR setgid ()
sets the effective group ID of the calling process.
If the caller is the
superuser, the real GID and saved set-group-ID are also set.
If the caller is privileged (has the
CAP_SETGID
capability), the real GID and saved set-group-ID are also set.
Under Linux,
.BR setgid ()