summaryrefslogtreecommitdiffstats
path: root/kernel/acct.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/acct.c')
-rw-r--r--kernel/acct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/acct.c b/kernel/acct.c
index 4229b9ebf..6a00f3571 100644
--- a/kernel/acct.c
+++ b/kernel/acct.c
@@ -119,7 +119,7 @@ asmlinkage int sys_acct(const char *name)
int error = -EPERM;
lock_kernel();
- if (!suser())
+ if (!capable(CAP_SYS_PACCT))
goto out;
if (name == (char *)NULL) {