From ae67a2cdf3ee4e77774704370dec6f10a92e49c9 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 22 Nov 2010 08:50:49 +0100 Subject: [PATCH] setfsuid.2: Add NOTES explaining 32-bit system calls added in Linux 2.4 Signed-off-by: Michael Kerrisk --- man2/setfsuid.2 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/man2/setfsuid.2 b/man2/setfsuid.2 index 737fc9cc1..f6ea56137 100644 --- a/man2/setfsuid.2 +++ b/man2/setfsuid.2 @@ -26,7 +26,7 @@ .\" Modified, 27 May 2004, Michael Kerrisk .\" Added notes on capability requirements .\" -.TH SETFSUID 2 2008-12-05 "Linux" "Linux Programmer's Manual" +.TH SETFSUID 2 2010-11-22 "Linux" "Linux Programmer's Manual" .SH NAME setfsuid \- set user identity used for file system checks .SH SYNOPSIS @@ -89,6 +89,16 @@ the system call. 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. + +The original Linux +.BR setfsuid () +system call supported only 16-bit user IDs. +Subsequently, Linux 2.4 added +.BR setfsuid32 () +supporting 32-bit IDs. +The glibc +.BR setfsuid () +wrapper function transparently deals with the variation across kernel versions. .SH BUGS No error messages of any kind are returned to the caller. At the very