diff options
Diffstat (limited to 'kernel/acct.c')
-rw-r--r-- | kernel/acct.c | 2 |
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) { |