]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: fix Makefile dependencies of flask.h
authorOndrej Mosnacek <omosnace@redhat.com>
Wed, 12 Apr 2023 13:59:19 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:34 +0000 (11:35 +0200)
commit7a768767c206df893b43956e5f468b3844ab31e4
tree1296fa79472ed8cc583fec8522051e3b13f85e8c
parent87e656b7c1195a063bb7de5077878e9e71b729f9
selinux: fix Makefile dependencies of flask.h

[ Upstream commit bcab1adeaad4b39a1e04cb98979a367d08253f03 ]

Make the flask.h target depend on the genheaders binary instead of
classmap.h to ensure that it is rebuilt if any of the dependencies of
genheaders are changed.

Notably this fixes flask.h not being rebuilt when
initial_sid_to_string.h is modified.

Fixes: 529f46898b09 ("selinux: generate flask headers during kernel build")
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
security/selinux/Makefile