[RFC PATCH] apparmor: honor the configured debug message default
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Fri Dec 4 02:21:38 UTC 2026
> SECURITY_APPARMOR_DEBUG_MESSAGES promises to set the default of
> apparmor.debug. The debug mask is instead zero-initialized regardless of
> that option until a parameter is written.
>
> The conversion from a boolean to a mask dropped the initializer that
> used to follow this option.
>
> Initialize the mask to the value the existing parameter parser uses for
> Y when the option is enabled, and to DEBUG_NONE otherwise. Explicit
> parameter values still override this initial value.
>
> The issue was found by our static-analysis tool and manually reviewed.
>
> Fixes: 71e6cff3e0dd ("apparmor: Improve debug print infrastructure")
> Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/179635003085.74470.10701182849877618986@163.com?part=1
More information about the Linux-security-module-archive
mailing list