aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/capability.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/capability.c')
-rw-r--r--kernel/capability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/capability.c b/kernel/capability.c
index 36b4b4daebec..df62f53f84ac 100644
--- a/kernel/capability.c
+++ b/kernel/capability.c
@@ -308,7 +308,7 @@ int capable(int cap)
308 BUG(); 308 BUG();
309 } 309 }
310 310
311 if (has_capability(current, cap)) { 311 if (security_capable(cap) == 0) {
312 current->flags |= PF_SUPERPRIV; 312 current->flags |= PF_SUPERPRIV;
313 return 1; 313 return 1;
314 } 314 }