diff options
Diffstat (limited to 'kernel/capability.c')
-rw-r--r-- | kernel/capability.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/capability.c b/kernel/capability.c index 0fcf1c14a297..3f1adb6c6470 100644 --- a/kernel/capability.c +++ b/kernel/capability.c | |||
@@ -384,7 +384,7 @@ bool ns_capable(struct user_namespace *ns, int cap) | |||
384 | BUG(); | 384 | BUG(); |
385 | } | 385 | } |
386 | 386 | ||
387 | if (has_ns_capability(current, ns, cap)) { | 387 | if (security_capable(current_cred(), ns, cap) == 0) { |
388 | current->flags |= PF_SUPERPRIV; | 388 | current->flags |= PF_SUPERPRIV; |
389 | return true; | 389 | return true; |
390 | } | 390 | } |