CRED: Fix regression in cap_capable() as shown up by sys_faccessat() [ver #2]
[linux-2.6.git] / kernel / capability.c
index 36b4b4d..df62f53 100644 (file)
@@ -308,7 +308,7 @@ int capable(int cap)
                BUG();
        }
 
-       if (has_capability(current, cap)) {
+       if (security_capable(cap) == 0) {
                current->flags |= PF_SUPERPRIV;
                return 1;
        }