setfsuid.2: Wording improvements

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-08-09 09:23:38 +02:00
parent 68f2e81eda
commit 2ec26c2b30
1 changed files with 6 additions and 6 deletions

View File

@ -38,14 +38,15 @@ setfsuid \- set user identity used for filesystem checks
.SH DESCRIPTION .SH DESCRIPTION
The system call The system call
.BR setfsuid () .BR setfsuid ()
sets the user ID that the Linux kernel uses to check for all accesses changes the value of the caller's filesystem user ID\(emthe
user ID that the Linux kernel uses to check for all accesses
to the filesystem. to the filesystem.
Normally, the value of Normally, the value of
.I fsuid the filesystem user ID
will shadow the value of the effective user ID. will shadow the value of the effective user ID.
In fact, whenever the In fact, whenever the
effective user ID is changed, effective user ID is changed,
.I fsuid the filesystem user ID
will also be changed to the new value of the effective user ID. will also be changed to the new value of the effective user ID.
Explicit calls to Explicit calls to
@ -62,9 +63,8 @@ is a security hole that can expose it to unwanted signals.
.BR setfsuid () .BR setfsuid ()
will succeed only if the caller is the superuser or if will succeed only if the caller is the superuser or if
.I fsuid .I fsuid
matches either the real user ID, effective user ID, saved set-user-ID, or matches either the caller's real user ID, effective user ID,
the current value of saved set-user-ID, or current filesystem user ID.
.IR fsuid .
.SH RETURN VALUE .SH RETURN VALUE
On both success and failure, On both success and failure,
this call returns the previous filesystem user ID of the caller. this call returns the previous filesystem user ID of the caller.