mirror of https://github.com/mkerrisk/man-pages
seteuid.2: Error checking should always be performed, even when caller is UID 0
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7d8d165a4b
commit
b57db62bf0
|
@ -69,6 +69,13 @@ On success, zero is returned.
|
|||
On error, \-1 is returned, and
|
||||
.I errno
|
||||
is set appropriately.
|
||||
|
||||
.IR Note :
|
||||
there are cases where
|
||||
.BR seteuid ()
|
||||
can fail even when the caller is UID 0;
|
||||
it is a grave security error to omit checking for a faulure return from
|
||||
.BR seteuid ().
|
||||
.SH ERRORS
|
||||
.\" .TP
|
||||
.\" .B EINVAL
|
||||
|
|
Loading…
Reference in New Issue