aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss@m4x.org>2020-04-14 22:09:54 +0200
committerJason Zaman <perfinion@gentoo.org>2020-08-09 19:58:44 -0700
commitd2c150c00399409f47149436a280c87867a09323 (patch)
tree0514e5feb7f979c515beb3889d6dc017ddda6b92 /Vagrantfile
parentmozilla, mailman, init, modutils: Module version bump. (diff)
downloadhardened-refpolicy-d2c150c00399409f47149436a280c87867a09323.tar.gz
hardened-refpolicy-d2c150c00399409f47149436a280c87867a09323.tar.bz2
hardened-refpolicy-d2c150c00399409f47149436a280c87867a09323.zip
Vagrantfile: remove older installed modules before "make install"
When testing issues in older versions of refpolicy (for example when git-bisecting a regression), the newer policy modules are kept in /usr/share/selinux/refpolicy/ and trigger errors when they fail to be loaded by "semodule -s refpolicy -i /usr/share/selinux/refpolicy/*.pp". Avoid this situation by removed old modules from /usr/share/selinux/refpolicy/ before running "make install". Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org> Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 18d145b0..69ce1bfc 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -15,6 +15,7 @@ $install_refpolicy = <<-SHELL
sudo -su vagrant make -C /vagrant conf
sudo -su vagrant make -C /vagrant all
sudo -su vagrant make -C /vagrant validate
+ rm -f /usr/share/selinux/refpolicy/*.pp
make -C /vagrant install
make -C /vagrant install-headers
semodule -s refpolicy -i /usr/share/selinux/refpolicy/*.pp