SELinuxProject / selinux-testsuite

This is the upstream SELinux testsuite which is designed as a basic set of regression tests for the SELinux kernel functionality.
GNU General Public License v2.0
53 stars 43 forks source link

policy: do not rebuild policy package if already built #68

Closed WOnder93 closed 5 years ago

WOnder93 commented 5 years ago

Right now, test_policy.pp is rebuilt on every make invocation. Tweak the Makefile so that it is only build when it hasn't been built, it has been cleaned, or the source files changed.

Signed-off-by: Ondrej Mosnacek omosnace@redhat.com

WOnder93 commented 5 years ago

After mailing list discussion [1] it turns out that the unconditional rebuild is desired due to the possibility of system policy update not being detected by the buildsystem, so I'm closing this PR.

[1] https://lore.kernel.org/selinux/20190923095837.25752-1-omosnace@redhat.com/T/