summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-09-06 20:05:07 +0000
committerChris Lumens <clumens@redhat.com>2006-09-06 20:05:07 +0000
commita0f3fa05946bc70fb03d348033dbbc070e95ffb4 (patch)
tree0659b4dc24f74f181a1e6c4011f0835c92faa60f /scripts
parent3095a8aa47ebfc01ed68583ad281555a0fc1cdd1 (diff)
downloadanaconda-a0f3fa05946bc70fb03d348033dbbc070e95ffb4.tar.gz
anaconda-a0f3fa05946bc70fb03d348033dbbc070e95ffb4.tar.xz
anaconda-a0f3fa05946bc70fb03d348033dbbc070e95ffb4.zip
Pull in all policy modules.
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