[PATCH] capability: Remove unused has_capability
Paul Moore
paul at paul-moore.com
Thu Dec 19 14:55:30 UTC 2024
On Thu, Dec 19, 2024 at 9:19 AM Dr. David Alan Gilbert
<linux at treblig.org> wrote:
>
> OK, maybe:
>
> * NOTE WELL: cap_capable() has reverse semantics to the capable() call
> * and friends. That is cap_capable() returns an int 0 when a task has
> * a capability, while the kernel's capable(), has_ns_capability(),
> * has_ns_capability_noaudit(), and has_capability_noaudit() return a
> * bool true (1) for this case.
Works for me, thanks.
--
paul-moore.com
More information about the Linux-security-module-archive
mailing list