selinux: improve debug configuration
authorChristian Göttsche <cgzones@googlemail.com>
Fri, 18 Aug 2023 15:12:14 +0000 (17:12 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 13 Sep 2023 17:46:57 +0000 (13:46 -0400)
commit6f594f5a3dc4917be1556e524673420197ca471d
tree37748f13756eb1afd139ff93827b9a4275240e08
parentfb8142ff4a642f14c4805980efb7531854c5dbdf
selinux: improve debug configuration

If the SELinux debug configuration is enabled define the macro DEBUG
such that pr_debug() calls are always enabled, regardless of
CONFIG_DYNAMIC_DEBUG, since those message are the main reason for this
configuration in the first place.

Mention example usage in case CONFIG_DYNAMIC_DEBUG is enabled in the
help section of the configuration.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Reviewed-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/Kconfig
security/selinux/Makefile