selinux: introduce SECURITY_SELINUX_DEBUG configuration
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 18 Jul 2023 18:49:19 +0000 (20:49 +0200)
committerPaul Moore <paul@paul-moore.com>
Thu, 20 Jul 2023 20:21:52 +0000 (16:21 -0400)
commit55a0e73806ec64279ea31d57b2116672631696a8
treee99f2602e088d8551a9438c801e060bb7d822405
parentdd51fcd42fd6bf37608f54303b974b47f73c1490
selinux: introduce SECURITY_SELINUX_DEBUG configuration

The policy database code contains several debug output statements
related to hashtable utilization.  Those are guarded by the macro
DEBUG_HASHES, which is neither documented nor set anywhere.

Introduce a new Kconfig configuration guarding this and potential
other future debugging related code.  Disable the setting by default.

Suggested-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: fixed line lengths in the help text]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/Kconfig
security/selinux/ss/policydb.c