summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index f819bcab4..47f59a6a8 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -1085,7 +1085,9 @@ fi
echo "Creating SELinux policy..."
if [ -x $DESTGR/usr/sbin/semodule ]; then
- /usr/sbin/chroot $DESTGR /usr/sbin/semodule -b /usr/share/selinux/targeted/base.pp -n -s targeted
+ ( cd $DESTGR
+ x=$(ls usr/share/selinux/targeted/*.pp | grep -v -e base.pp -e enableaudit.pp | awk '{ print "-i /" $1 }')
+ /usr/sbin/chroot $DESTGR /usr/sbin/semodule -b /usr/share/selinux/targeted/base.pp $x -n -s targeted )
fi
rm -rf $DEST/etc/selinux
mkdir $DEST/etc/selinux