summaryrefslogtreecommitdiff
path: root/security/selinux/Makefile
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-08-18 18:12:14 +0300
committerPaul Moore <paul@paul-moore.com>2023-09-13 20:46:57 +0300
commit6f594f5a3dc4917be1556e524673420197ca471d (patch)
tree37748f13756eb1afd139ff93827b9a4275240e08 /security/selinux/Makefile
parentfb8142ff4a642f14c4805980efb7531854c5dbdf (diff)
downloadlinux-6f594f5a3dc4917be1556e524673420197ca471d.tar.xz
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>
Diffstat (limited to 'security/selinux/Makefile')
-rw-r--r--security/selinux/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/Makefile b/security/selinux/Makefile
index 836379639058..c47519ed8156 100644
--- a/security/selinux/Makefile
+++ b/security/selinux/Makefile
@@ -12,6 +12,8 @@ obj-$(CONFIG_SECURITY_SELINUX) := selinux.o
ccflags-y := -I$(srctree)/security/selinux -I$(srctree)/security/selinux/include
+ccflags-$(CONFIG_SECURITY_SELINUX_DEBUG) += -DDEBUG
+
selinux-y := avc.o hooks.o selinuxfs.o netlink.o nlmsgtab.o netif.o \
netnode.o netport.o status.o \
ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \