selinux: fix Makefile dependencies of flask.h
authorOndrej Mosnacek <omosnace@redhat.com>
Wed, 12 Apr 2023 13:59:19 +0000 (15:59 +0200)
committerPaul Moore <paul@paul-moore.com>
Wed, 12 Apr 2023 17:34:20 +0000 (13:34 -0400)
commitbcab1adeaad4b39a1e04cb98979a367d08253f03
tree24df1f4935c01dfbf1dfdd766be7f00f7cff03f1
parent539813e4184a3ee4125123cc39cc9fc29691d299
selinux: fix Makefile dependencies of flask.h

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: 8753f6bec352 ("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>
security/selinux/Makefile