[PATCH v2] capability: Remove unused has_capability

Paul Moore paul at paul-moore.com
Thu Dec 19 18:28:02 UTC 2024


On Thu, Dec 19, 2024 at 12:29 PM <linux at treblig.org> wrote:
>
> From: "Dr. David Alan Gilbert" <linux at treblig.org>
>
> The vanilla has_capability() function has been unused since 2018's
> commit dcb569cf6ac9 ("Smack: ptrace capability use fixes")
>
> Remove it.
>
> Fixup a comment in security/commoncap.c that referenced it.
>
> Signed-off-by: Dr. David Alan Gilbert <linux at treblig.org>
> ---
>  include/linux/capability.h |  5 -----
>  kernel/capability.c        | 16 ----------------
>  security/commoncap.c       |  9 +++++----
>  3 files changed, 5 insertions(+), 25 deletions(-)

Now that Serge has the capabilities tree back up and running I'm
assuming he will grab this patch, if not just let me know Serge and I
can take it.

Reviewed-by: Paul Moore <paul at paul-moore.com>

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list