summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2023-04-12 13:29:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-17 11:13:08 +0200
commit1b18998c27503e68a5f4894e6799a840c9d3b5da (patch)
treec0791ef74d3d3549831ceda0ff01376b79170c1d /security
parent8a3f6a71abc15e06385336896c16dec3110beb2e (diff)
downloadlinux-stable-1b18998c27503e68a5f4894e6799a840c9d3b5da.tar.gz
linux-stable-1b18998c27503e68a5f4894e6799a840c9d3b5da.tar.bz2
linux-stable-1b18998c27503e68a5f4894e6799a840c9d3b5da.zip
selinux: ensure av_permissions.h is built when needed
[ Upstream commit 4ce1f694eb5d8ca607fed8542d32a33b4f1217a5 ] The Makefile rule responsible for building flask.h and av_permissions.h only lists flask.h as a target which means that av_permissions.h is only generated when flask.h needs to be generated. This patch fixes this by adding av_permissions.h as a target to the rule. Fixes: 8753f6bec352 ("selinux: generate flask headers during kernel build") Signed-off-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security')
-rw-r--r--security/selinux/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/Makefile b/security/selinux/Makefile
index 3efb0dda95b5..08ba8ca81d40 100644
--- a/security/selinux/Makefile
+++ b/security/selinux/Makefile
@@ -22,5 +22,5 @@ quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h
cmd_flask = $< $(obj)/flask.h $(obj)/av_permissions.h
targets += flask.h av_permissions.h
-$(obj)/flask.h: scripts/selinux/genheaders/genheaders FORCE
+$(obj)/flask.h $(obj)/av_permissions.h &: scripts/selinux/genheaders/genheaders FORCE
$(call if_changed,flask)