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
- Lines: 18
- Date:
Wed May 6 10:56:01 1998
- Orig file:
v2.1.99/linux/arch/arm/kernel/ioport.c
- Orig date:
Tue Jan 20 16:39:41 1998
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