patch-2.1.100 linux/kernel/acct.c
Next file: linux/kernel/capability.c
Previous file: linux/kernel/Makefile
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed May 6 10:56:06 1998
- Orig file:
v2.1.99/linux/kernel/acct.c
- Orig date:
Tue Mar 10 10:03:35 1998
diff -u --recursive --new-file v2.1.99/linux/kernel/acct.c linux/kernel/acct.c
@@ -119,7 +119,7 @@
int error = -EPERM;
lock_kernel();
- if (!suser())
+ if (!capable(CAP_SYS_PACCT))
goto out;
if (name == (char *)NULL) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov