patch-2.1.100 linux/arch/m68k/kernel/sys_m68k.c
Next file: linux/arch/mips/kernel/ptrace.c
Previous file: linux/arch/m68k/kernel/ptrace.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed May  6 10:56:01 1998
-  Orig file: 
v2.1.99/linux/arch/m68k/kernel/sys_m68k.c
-  Orig date: 
Tue Feb 17 13:12:45 1998
diff -u --recursive --new-file v2.1.99/linux/arch/m68k/kernel/sys_m68k.c linux/arch/m68k/kernel/sys_m68k.c
@@ -548,7 +548,7 @@
 	if (scope == FLUSH_SCOPE_ALL) {
 		/* Only the superuser may flush the whole cache. */
 		ret = -EPERM;
-		if (!suser ())
+		if (!capable(CAP_SYS_ADMIN))
 			goto out;
 	} else {
 		/* Verify that the specified address region actually belongs to
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov