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

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