]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/capability.c
CRED: Fix regression in cap_capable() as shown up by sys_faccessat() [ver #3]
[linux-2.6-omap-h63xx.git] / kernel / capability.c
index 36b4b4daebec0a465fb8490c9531ed71d694ae59..df62f53f84acc03be44c318c50a6a5b198d7e3b1 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;
        }