From e31d1beb762a274c8cc06f2edeebb708f9439a8f Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sun, 26 Jun 2016 20:31:46 +0200 Subject: [PATCH] getgroups.2: Note user namespace requirements for CAP_SETGID Signed-off-by: Michael Kerrisk --- man2/getgroups.2 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/man2/getgroups.2 b/man2/getgroups.2 index 7216f5962..974265d4f 100644 --- a/man2/getgroups.2 +++ b/man2/getgroups.2 @@ -85,9 +85,9 @@ to be used in a further call to .PP .BR setgroups () sets the supplementary group IDs for the calling process. -Appropriate privileges (Linux: the -.B CAP_SETGID -capability) are required. +Appropriate privileges are required (see the description of the +.BR EPERM +error, below). The .I size argument specifies the number of supplementary group IDs @@ -134,9 +134,9 @@ Out of memory. .TP .B EPERM The calling process has insufficient privilege -(it does not have the +(the caller does not have the .BR CAP_SETGID -capability). +capability in the user namespace in which it resides). .TP .BR EPERM " (since Linux 3.19)" The use of