From a0f3fa05946bc70fb03d348033dbbc070e95ffb4 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Wed, 6 Sep 2006 20:05:07 +0000 Subject: Pull in all policy modules. --- scripts/upd-instroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit