]> git.pld-linux.org Git - packages/kernel.git/blame - linux-grsecurity-fixes.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / linux-grsecurity-fixes.patch
CommitLineData
e73a4538 1diff -urN linux/fs/proc/base.c linux.fixed/fs/proc/base.c
2--- linux/fs/proc/base.c Mon Nov 26 18:23:38 2001
3+++ linux.fixed/fs/proc/base.c Mon Nov 26 18:20:19 2001
4@@ -704,13 +704,15 @@
1e63efb1
AM
5 get_task_struct(task);
6 inode->u.proc_i.task = task;
7 inode->i_uid = 0;
8+#ifndef CONFIG_GRKERNSEC_PROC_USERGROUP
9 inode->i_gid = 0;
10+#else
11+ inode->i_gid = CONFIG_GRKERNSEC_PROC_GID;
12+#endif
13 if (ino == PROC_PID_INO || task_dumpable(task)) {
14 inode->i_uid = task->euid;
15 #ifndef CONFIG_GRKERNSEC_PROC_USERGROUP
16 inode->i_gid = task->egid;
17-#else
18- inode->i_gid = CONFIG_GRKERNSEC_PROC_GID;
19 #endif
20 }
21
This page took 0.29492 seconds and 4 git commands to generate.