patch-2.1.100 linux/arch/arm/kernel/ioport.c

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

diff -u --recursive --new-file v2.1.99/linux/arch/arm/kernel/ioport.c linux/arch/arm/kernel/ioport.c
@@ -58,7 +58,7 @@
 	if (from + num > IO_BITMAP_SIZE*32)
 		return -EINVAL;
 #endif
-	if (!suser())
+	if (!capable(CAP_SYS_RAWIO))
 		return -EPERM;
 
 #ifdef IODEBUG
@@ -91,7 +91,7 @@
 
 	if (level > 3)
 		return -EINVAL;
-	if (!suser())
+	if (!capable(CAP_SYS_RAWIO))
 		return -EPERM;
 	*(&eflags) = (eflags & 0xffffcfff) | (level << 12);
 	return 0;

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