summaryrefslogtreecommitdiffstats
path: root/man2/setgid.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/setgid.2')
-rw-r--r--man2/setgid.230
1 files changed, 16 insertions, 14 deletions
diff --git a/man2/setgid.2 b/man2/setgid.2
index 4a2003707..f61888762 100644
--- a/man2/setgid.2
+++ b/man2/setgid.2
@@ -7,7 +7,7 @@
.\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com>
.\" Modified 2002-03-09 by aeb
.\"
-.TH setgid 2 2022-10-30 "Linux man-pages 6.03"
+.TH setgid 2 2023-03-30 "Linux man-pages 6.05.01"
.SH NAME
setgid \- set group identity
.SH LIBRARY
@@ -54,19 +54,7 @@ The calling process is not privileged (does not have the
.I gid
does not match the real group ID or saved set-group-ID of
the calling process.
-.SH STANDARDS
-POSIX.1-2001, POSIX.1-2008, SVr4.
-.SH NOTES
-The original Linux
-.BR setgid ()
-system call supported only 16-bit group IDs.
-Subsequently, Linux 2.4 added
-.BR setgid32 ()
-supporting 32-bit IDs.
-The glibc
-.BR setgid ()
-wrapper function transparently deals with the variation across kernel versions.
-.\"
+.SH VERSIONS
.SS C library/kernel differences
At the kernel level, user IDs and group IDs are a per-thread attribute.
However, POSIX requires that all threads in a process
@@ -81,6 +69,20 @@ that when one thread changes credentials,
all of the other threads in the process also change their credentials.
For details, see
.BR nptl (7).
+.SH STANDARDS
+POSIX.1-2008.
+.SH HISTORY
+POSIX.1-2001, SVr4.
+.PP
+The original Linux
+.BR setgid ()
+system call supported only 16-bit group IDs.
+Subsequently, Linux 2.4 added
+.BR setgid32 ()
+supporting 32-bit IDs.
+The glibc
+.BR setgid ()
+wrapper function transparently deals with the variation across kernel versions.
.SH SEE ALSO
.BR getgid (2),
.BR setegid (2),