]> www.infradead.org Git - users/jedix/linux-maple.git/commit
smack: remove /smack/logging if audit is not configured
authorKonstantin Andreev <andreev@swemel.ru>
Fri, 17 Jan 2025 21:46:46 +0000 (00:46 +0300)
committerCasey Schaufler <casey@schaufler-ca.com>
Fri, 14 Feb 2025 02:33:55 +0000 (18:33 -0800)
commitbf9f14c91a05ec77ee3710703b699c2a32f80ae4
tree1dcd07aacf0c8755e17062400abeb0228d815270
parent6cce0cc3861337b3ad8d4ac131d6e47efa0954ec
smack: remove /smack/logging if audit is not configured

If CONFIG_AUDIT is not set then
SMACK does not generate audit messages,
however, keeps audit control file, /smack/logging,
while there is no entity to control.
This change removes audit control file /smack/logging
when audit is not configured in the kernel

Signed-off-by: Konstantin Andreev <andreev@swemel.ru>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack.h
security/smack/smack_access.c
security/smack/smackfs.c