]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smack: move initcalls to the LSM framework
authorPaul Moore <paul@paul-moore.com>
Tue, 18 Feb 2025 22:22:31 +0000 (17:22 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 22 Oct 2025 23:24:25 +0000 (19:24 -0400)
commit06643d5584f9efa19804d17435169a63412b4eae
tree059da8a3464df8f6a05a43825201f343ac0d66b3
parentd934f97db827ac44a84edf399d6b7a3946fe1cf1
smack: move initcalls to the LSM framework

As the LSM framework only supports one LSM initcall callback for each
initcall type, the init_smk_fs() and smack_nf_ip_init() functions were
wrapped with a new function, smack_initcall() that is registered with
the LSM framework.

Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: John Johansen <john.johhansen@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/smack/smack.h
security/smack/smack_lsm.c
security/smack/smack_netfilter.c
security/smack/smackfs.c