patch-2.1.100 linux/arch/alpha/kernel/bios32.c

Next file: linux/arch/alpha/kernel/ptrace.c
Previous file: linux/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.99/linux/arch/alpha/kernel/bios32.c linux/arch/alpha/kernel/bios32.c
@@ -2041,7 +2041,7 @@
 	unsigned int uint;
 	long err = 0;
 
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		return -EPERM;
 
 	lock_kernel();
@@ -2082,7 +2082,7 @@
 	unsigned int uint;
 	long err = 0;
 
-	if (!suser())
+	if (!capable(CAP_SYS_ADMIN))
 		return -EPERM;
 
 	lock_kernel();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov