diff options
author | 2020-04-14 22:09:54 +0200 | |
---|---|---|
committer | 2020-08-09 19:58:44 -0700 | |
commit | d2c150c00399409f47149436a280c87867a09323 (patch) | |
tree | 0514e5feb7f979c515beb3889d6dc017ddda6b92 /Vagrantfile | |
parent | mozilla, mailman, init, modutils: Module version bump. (diff) | |
download | hardened-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-- | Vagrantfile | 1 |
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 |