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:
Michael Kerrisk 2016-07-02 00:13:05 +02:00
parent de61071a21
commit dc439d82cb
2 changed files with 16 additions and 16 deletions

View File

@ -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

View File

@ -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