setuid.2: wfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-11-23 21:43:45 +01:00
parent 674367694c
commit defcd2c896
1 changed files with 2 additions and 3 deletions

View File

@ -56,10 +56,9 @@ privileges, do some un-privileged work, and then reengage the original
effective user ID in a secure manner.
.PP
If the user is root or the program is set-user-ID-root, special care must be
taken.
The
taken:
.BR setuid ()
function checks the effective user ID of the caller and if it is
checks the effective user ID of the caller and if it is
the superuser, all process-related user ID's are set to
.IR uid .
After this has occurred, it is impossible for the program to regain root