From 4069bc44a61247d461ebaae93ef4f5814ee12501 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 9 Aug 2013 09:23:49 +0200 Subject: [PATCH] setfsgid.2: Wording improvements Signed-off-by: Michael Kerrisk --- man2/setfsgid.2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/man2/setfsgid.2 b/man2/setfsgid.2 index 2c359177d..117deef54 100644 --- a/man2/setfsgid.2 +++ b/man2/setfsgid.2 @@ -38,14 +38,15 @@ setfsgid \- set group identity used for filesystem checks .SH DESCRIPTION The system call .BR setfsgid () -sets the group ID that the Linux kernel uses to check for all accesses +changes the value of the caller's filesystem group ID\(emthe +group ID that the Linux kernel uses to check for all accesses to the filesystem. Normally, the value of -.I fsgid +the filesystem group ID will shadow the value of the effective group ID. In fact, whenever the effective group ID is changed, -.I fsgid +the filesystem group ID will also be changed to the new value of the effective group ID. Explicit calls to @@ -62,9 +63,8 @@ is a security hole that can expose it to unwanted signals. .BR setfsgid () will succeed only if the caller is the superuser or if .I fsgid -matches either the real group ID, effective group ID, -saved set-group-ID, or the current value of -.IR fsgid . +matches either the caller's real group ID, effective group ID, +saved set-group-ID, or current the filesystem user ID. .SH RETURN VALUE On both success and failure, this call returns the previous filesystem group ID of the caller.