diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-07-02 00:13:05 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-07-02 00:13:05 +0200 |
| commit | dc439d82cb9eb61b763ccef22e408fb9f2b53034 (patch) | |
| tree | a24cd80f8c785ab2d781fe9464758a37a6838ea0 | |
| parent | de61071a21ea7803cbd1dfa1eac44a939cd84030 (diff) | |
| download | man-pages-dc439d82cb9eb61b763ccef22e408fb9f2b53034.tar.gz | |
setfsgid.2, setfsuid.2: Move glibc wrapper notes to "C library/kernel differences" subsection
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
| -rw-r--r-- | man2/setfsgid.2 | 16 | ||||
| -rw-r--r-- | man2/setfsuid.2 | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/man2/setfsgid.2 b/man2/setfsgid.2 index 910b3fd2a9..138383491b 100644 --- a/man2/setfsgid.2 +++ b/man2/setfsgid.2 @@ -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 diff --git a/man2/setfsuid.2 b/man2/setfsuid.2 index 08735df779..4e00b5f866 100644 --- a/man2/setfsuid.2 +++ b/man2/setfsuid.2 @@ -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 |
