From 2b2b5bad06f0eb2f45217ae337542e5e15bacda8 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Tue, 14 Apr 2020 22:09:54 +0200 Subject: [PATCH] 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 --- Vagrantfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Vagrantfile b/Vagrantfile index 18d145b00..69ce1bfce 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