sst-linux/security/smack
Konstantin Andreev d6937b1b4a smack: dont compile ipv6 code unless ipv6 is configured
[ Upstream commit bfcf4004bcbce2cb674b4e8dbd31ce0891766bac ]

I want to be sure that ipv6-specific code
is not compiled in kernel binaries
if ipv6 is not configured.

[1] was getting rid of "unused variable" warning, but,
with that, it also mandated compilation of a handful ipv6-
specific functions in ipv4-only kernel configurations:

smk_ipv6_localhost, smack_ipv6host_label, smk_ipv6_check.

Their compiled bodies are likely to be removed by compiler
from the resulting binary, but, to be on the safe side,
I remove them from the compiler view.

[1]
Fixes: 00720f0e7f ("smack: avoid unused 'sip' variable warning")

Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:30 +02:00
..
Kconfig
Makefile
smack_access.c
smack_lsm.c smack: dont compile ipv6 code unless ipv6 is configured 2025-04-10 14:33:30 +02:00
smack_netfilter.c
smack.h smack: dont compile ipv6 code unless ipv6 is configured 2025-04-10 14:33:30 +02:00
smackfs.c smackfs: Use rcu_assign_pointer() to ensure safe assignment in smk_set_cipso 2024-10-17 15:20:59 +02:00