From 14c6baebf2afa8e2881459084902f03dfdecc9cb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 22 Mar 2015 09:54:37 +0100 Subject: [PATCH] setgid.2: Clarify that setgid() changes all GIDs when caller has CAP_SETGID Signed-off-by: Michael Kerrisk --- man2/setgid.2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/man2/setgid.2 b/man2/setgid.2 index d9cccd5d9..91c752d1b 100644 --- a/man2/setgid.2 +++ b/man2/setgid.2 @@ -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 ()