patch-2.3.39 linux/kernel/sys.c
Next file: linux/kernel/sysctl.c
Previous file: linux/kernel/signal.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Jan 10 18:15:58 2000
- Orig file:
v2.3.38/linux/kernel/sys.c
- Orig date:
Mon Nov 1 13:56:27 1999
diff -u --recursive --new-file v2.3.38/linux/kernel/sys.c linux/kernel/sys.c
@@ -12,9 +12,26 @@
#include <linux/reboot.h>
#include <linux/prctl.h>
#include <linux/init.h>
+#include <linux/highuid.h>
#include <asm/uaccess.h>
#include <asm/io.h>
+
+/*
+ * this is where the system-wide overflow UID and GID are defined, for
+ * architectures that now have 32-bit UID/GID but didn't in the past
+ */
+
+int overflowuid = DEFAULT_OVERFLOWUID;
+int overflowgid = DEFAULT_OVERFLOWGID;
+
+/*
+ * the same as above, but for filesystems which can only store a 16-bit
+ * UID and GID. as such, this is needed on all architectures
+ */
+
+int fs_overflowuid = DEFAULT_FS_OVERFLOWUID;
+int fs_overflowgid = DEFAULT_FS_OVERFLOWUID;
/*
* this indicates whether you can reboot with ctrl-alt-del: the default is yes
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)