patch-2.2.17 linux/fs/proc/array.c

Next file: linux/fs/proc/inode.c
Previous file: linux/fs/ntfs/util.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/fs/proc/array.c linux/fs/proc/array.c
@@ -1486,7 +1486,7 @@
 		case PROC_PID_CPU:
 			return 0;	
 	}
-	if(capable(CAP_DAC_OVERRIDE) || (current->fsuid == euid && ok))
+	if((current->fsuid == euid && ok) || capable(CAP_DAC_OVERRIDE))
 		return 0;
 	return 1;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)