mirror of https://github.com/mkerrisk/man-pages
setuid.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
674367694c
commit
defcd2c896
|
@ -56,10 +56,9 @@ privileges, do some un-privileged work, and then reengage the original
|
||||||
effective user ID in a secure manner.
|
effective user ID in a secure manner.
|
||||||
.PP
|
.PP
|
||||||
If the user is root or the program is set-user-ID-root, special care must be
|
If the user is root or the program is set-user-ID-root, special care must be
|
||||||
taken.
|
taken:
|
||||||
The
|
|
||||||
.BR setuid ()
|
.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
|
the superuser, all process-related user ID's are set to
|
||||||
.IR uid .
|
.IR uid .
|
||||||
After this has occurred, it is impossible for the program to regain root
|
After this has occurred, it is impossible for the program to regain root
|
||||||
|
|
Loading…
Reference in New Issue