mirror of https://github.com/mkerrisk/man-pages
setfsgid.2, setfsuid.2: Move glibc wrapper notes to "C library/kernel differences" subsection
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
de61071a21
commit
dc439d82cb
|
@ -77,14 +77,6 @@ This system call is present in Linux since version 1.2.
|
|||
is Linux-specific and should not be used in programs intended
|
||||
to be portable.
|
||||
.SH NOTES
|
||||
When old versions of glibc determine that the argument can not be
|
||||
passed to the kernel without integer truncation (because the kernel
|
||||
is old and does not support 32-bit group IDs),
|
||||
they will return \-1 and set \fIerrno\fP to
|
||||
.B EINVAL
|
||||
without attempting
|
||||
the system call.
|
||||
.LP
|
||||
Note that at the time this system call was introduced, a process
|
||||
could send a signal to a process with the same effective user ID.
|
||||
Today signal permission handling is slightly different.
|
||||
|
@ -105,6 +97,14 @@ supporting 32-bit IDs.
|
|||
The glibc
|
||||
.BR setfsgid ()
|
||||
wrapper function transparently deals with the variation across kernel versions.
|
||||
.SS C library/kernel differences
|
||||
When old versions of glibc determine that the argument can not be
|
||||
passed to the kernel without integer truncation (because the kernel
|
||||
is old and does not support 32-bit group IDs),
|
||||
they will return \-1 and set \fIerrno\fP to
|
||||
.B EINVAL
|
||||
without attempting
|
||||
the system call.
|
||||
.SH BUGS
|
||||
No error indications of any kind are returned to the caller,
|
||||
and the fact that both successful and unsuccessful calls return
|
||||
|
|
|
@ -77,14 +77,6 @@ This system call is present in Linux since version 1.2.
|
|||
is Linux-specific and should not be used in programs intended
|
||||
to be portable.
|
||||
.SH NOTES
|
||||
When old versions of glibc determine that the argument can not be
|
||||
passed to the kernel without integer truncation (because the kernel
|
||||
is old and does not support 32-bit user IDs),
|
||||
they will return \-1 and set \fIerrno\fP to
|
||||
.B EINVAL
|
||||
without attempting
|
||||
the system call.
|
||||
.LP
|
||||
At the time when this system call was introduced, one process
|
||||
could send a signal to another process with the same effective user ID.
|
||||
This meant that if a privileged process changed its effective user ID
|
||||
|
@ -113,6 +105,14 @@ supporting 32-bit IDs.
|
|||
The glibc
|
||||
.BR setfsuid ()
|
||||
wrapper function transparently deals with the variation across kernel versions.
|
||||
.SS C library/kernel differences
|
||||
When old versions of glibc determine that the argument can not be
|
||||
passed to the kernel without integer truncation (because the kernel
|
||||
is old and does not support 32-bit user IDs),
|
||||
they will return \-1 and set \fIerrno\fP to
|
||||
.B EINVAL
|
||||
without attempting
|
||||
the system call.
|
||||
.SH BUGS
|
||||
No error indications of any kind are returned to the caller,
|
||||
and the fact that both successful and unsuccessful calls return
|
||||
|
|
Loading…
Reference in New Issue