summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man2/seteuid.2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:51:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:51:52 +0000
commit4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch)
tree3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/debian-unstable/man2/seteuid.2
parentAdding upstream version 4.22.0. (diff)
downloadmanpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz
manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/debian-unstable/man2/seteuid.2')
-rw-r--r--upstream/debian-unstable/man2/seteuid.220
1 files changed, 10 insertions, 10 deletions
diff --git a/upstream/debian-unstable/man2/seteuid.2 b/upstream/debian-unstable/man2/seteuid.2
index 0c47f6af..c922717e 100644
--- a/upstream/debian-unstable/man2/seteuid.2
+++ b/upstream/debian-unstable/man2/seteuid.2
@@ -6,7 +6,7 @@
.\" Modified, 27 May 2004, Michael Kerrisk <mtk.manpages@gmail.com>
.\" Added notes on capability requirements
.\"
-.TH seteuid 2 2023-03-30 "Linux man-pages 6.05.01"
+.TH seteuid 2 2024-05-02 "Linux man-pages 6.8"
.SH NAME
seteuid, setegid \- set effective user or group ID
.SH LIBRARY
@@ -15,16 +15,16 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.PP
+.P
.BI "int seteuid(uid_t " euid );
.BI "int setegid(gid_t " egid );
.fi
-.PP
+.P
.RS -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.RE
-.PP
+.P
.BR seteuid (),
.BR setegid ():
.nf
@@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see
sets the effective user ID of the calling process.
Unprivileged processes may only set the effective user ID to the
real user ID, the effective user ID or the saved set-user-ID.
-.PP
+.P
Precisely the same holds for
.BR setegid ()
with "group" instead of "user".
@@ -50,7 +50,7 @@ On success, zero is returned.
On error, \-1 is returned, and
.I errno
is set to indicate the error.
-.PP
+.P
.IR Note :
there are cases where
.BR seteuid ()
@@ -86,7 +86,7 @@ saved set-user-ID (saved set-group-ID) is
possible since Linux 1.1.37 (1.1.38).
On an arbitrary system one should check
.BR _POSIX_SAVED_IDS .
-.PP
+.P
Under glibc 2.0,
.BI seteuid( euid )
is equivalent to
@@ -102,7 +102,7 @@ with the difference that the change in implementation from
to
.BI setresgid(\-1, " egid" ", \-1)"
occurred in glibc 2.2 or 2.3 (depending on the hardware architecture).
-.PP
+.P
According to POSIX.1,
.BR seteuid ()
.RB ( setegid ())
@@ -117,9 +117,9 @@ On Linux,
and
.BR setegid ()
are implemented as library functions that call, respectively,
-.BR setreuid (2)
+.BR setresuid (2)
and
-.BR setregid (2).
+.BR setresgid (2).
.SH STANDARDS
POSIX.1-2008.
.SH HISTORY