* [PATCH] setfsuid.2: Fix note about errors from the syscall wrapper
@ 2016-07-01 14:14 Jann Horn
[not found] ` <1467382449-32544-1-git-send-email-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Jann Horn @ 2016-07-01 14:14 UTC (permalink / raw)
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Jann Horn
See sysdeps/unix/sysv/linux/i386/setfsuid.c in glibc-2.2.1.
(This code is not present in modern glibc anymore.)
Signed-off-by: Jann Horn <jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
---
man2/setfsgid.2 | 6 ++++--
man2/setfsuid.2 | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/man2/setfsgid.2 b/man2/setfsgid.2
index d1d021d..910b3fd 100644
--- a/man2/setfsgid.2
+++ b/man2/setfsgid.2
@@ -77,8 +77,10 @@ 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 glibc determines that the argument is not a valid group ID,
-it will return \-1 and set \fIerrno\fP to
+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.
diff --git a/man2/setfsuid.2 b/man2/setfsuid.2
index 57b125e..08735df 100644
--- a/man2/setfsuid.2
+++ b/man2/setfsuid.2
@@ -77,8 +77,10 @@ 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 glibc determines that the argument is not a valid user ID,
-it will return \-1 and set \fIerrno\fP to
+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.
--
2.8.0.rc3.226.g39d4020
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] setfsuid.2: Fix note about errors from the syscall wrapper
[not found] ` <1467382449-32544-1-git-send-email-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
@ 2016-07-01 22:16 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-07-01 22:16 UTC (permalink / raw)
To: Jann Horn
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
Hi Jann,
On 07/01/2016 04:14 PM, Jann Horn wrote:
> See sysdeps/unix/sysv/linux/i386/setfsuid.c in glibc-2.2.1.
> (This code is not present in modern glibc anymore.)
Thanks for the patch! Applied.
Cheers,
Michael
> Signed-off-by: Jann Horn <jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
> ---
> man2/setfsgid.2 | 6 ++++--
> man2/setfsuid.2 | 6 ++++--
> 2 files changed, 8 insertions(+), 4 deletions(-)
>
> diff --git a/man2/setfsgid.2 b/man2/setfsgid.2
> index d1d021d..910b3fd 100644
> --- a/man2/setfsgid.2
> +++ b/man2/setfsgid.2
> @@ -77,8 +77,10 @@ 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 glibc determines that the argument is not a valid group ID,
> -it will return \-1 and set \fIerrno\fP to
> +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.
> diff --git a/man2/setfsuid.2 b/man2/setfsuid.2
> index 57b125e..08735df 100644
> --- a/man2/setfsuid.2
> +++ b/man2/setfsuid.2
> @@ -77,8 +77,10 @@ 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 glibc determines that the argument is not a valid user ID,
> -it will return \-1 and set \fIerrno\fP to
> +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.
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-01 22:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01 14:14 [PATCH] setfsuid.2: Fix note about errors from the syscall wrapper Jann Horn
[not found] ` <1467382449-32544-1-git-send-email-jannh-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2016-07-01 22:16 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).