summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-01-07 08:47:42 +0100
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2023-01-07 13:31:35 +0100
commitdf4840c1b880136fea97a1d64724995778c2475f (patch)
tree815483eaf02bdfa8a6a1d36c608c351a107f66e8 /security
parenttomoyo: fix broken dependency on *.conf.default (diff)
downloadlinux-df4840c1b880136fea97a1d64724995778c2475f.tar.xz
linux-df4840c1b880136fea97a1d64724995778c2475f.zip
tomoyo: avoid unneeded creation of builtin-policy.h
When CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING=y, builtin-policy.h is unneeded. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Diffstat (limited to 'security')
-rw-r--r--security/tomoyo/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/tomoyo/Makefile b/security/tomoyo/Makefile
index 221eaadffb09..1b18a02ccd2e 100644
--- a/security/tomoyo/Makefile
+++ b/security/tomoyo/Makefile
@@ -13,4 +13,6 @@ quiet_cmd_policy = POLICY $@
$(obj)/builtin-policy.h: $(wildcard $(obj)/policy/*.conf $(srctree)/$(src)/policy/*.conf.default) FORCE
$(call if_changed,policy)
+ifndef CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING
$(obj)/common.o: $(obj)/builtin-policy.h
+endif