patch-2.1.100 linux/arch/sparc64/kernel/psycho.c
Next file: linux/arch/sparc64/kernel/ptrace.c
Previous file: linux/arch/sparc/kernel/ptrace.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Wed May 6 10:56:02 1998
- Orig file:
v2.1.99/linux/arch/sparc64/kernel/psycho.c
- Orig date:
Thu Apr 23 20:21:32 1998
diff -u --recursive --new-file v2.1.99/linux/arch/sparc64/kernel/psycho.c linux/arch/sparc64/kernel/psycho.c
@@ -2323,7 +2323,7 @@
unsigned int uint;
int err = 0;
- if(!suser())
+ if(!capable(CAP_SYS_ADMIN))
return -EPERM;
lock_kernel();
@@ -2361,7 +2361,7 @@
unsigned int uint;
int 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