[apparmor] warning: ‘apparmor_ipv6_postroute’ defined but not used

Jordan Glover Golden_Miller83 at protonmail.ch
Sun Nov 11 20:01:26 UTC 2018


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, November 10, 2018 4:14 PM, Jordan Glover <Golden_Miller83 at protonmail.ch> wrote:

> Hello,
>
> During compilation Linux 4.20-rc1 with GCC 8.2.1 and below compat patches added:
>
> apparmor: userspace queries
> [PATCH 1/3] apparmor: patch to provide compatibility with v2.x net rules
> [PATCH 2/3] apparmor: af_unix mediation
> [PATCH 3/3] apparmor: fix use after free in sk_peer_label
>
> there is following warning:
>
> security/apparmor/lsm.c:1717:21: warning: ‘apparmor_ipv6_postroute’ defined but not used [-Wunused-function]
> static unsigned int apparmor_ipv6_postroute(void *priv,
> ^~~~~~~~~~~~~~~~~~~~~~~
>

I can reproduce this even on vanilla 4.20-rc1.

security/apparmor/lsm.c:1601:21: warning: ‘apparmor_ipv6_postroute’ defined but not used [-Wunused-function]
 static unsigned int apparmor_ipv6_postroute(void *priv,
                     ^~~~~~~~~~~~~~~~~~~~~~~

Jordan



More information about the AppArmor mailing list