patch-2.0.36 linux/fs/proc/array.c
Next file: linux/fs/proc/mem.c
Previous file: linux/fs/pipe.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Sun Nov 15 10:33:14 1998
- Orig file:
v2.0.35/linux/fs/proc/array.c
- Orig date:
Sun Nov 15 10:49:49 1998
diff -u --recursive --new-file v2.0.35/linux/fs/proc/array.c linux/fs/proc/array.c
@@ -29,7 +29,7 @@
* Yves Arrouye : remove removal of trailing spaces in get_array.
* <Yves.Arrouye@marin.fdn.fr>
*
- * Alan Cox : security fixes. <Alan.Cox@linux.org>a
+ * Alan Cox : security fixes. <Alan.Cox@linux.org>
*/
#include <linux/types.h>
@@ -1074,7 +1074,7 @@
case PROC_PID_CMDLINE:
return 0;
}
- if(current->fsuid == (*p)->euid)
+ if(suser() || current->fsuid == (*p)->euid)
return 0;
return 1;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov