summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-10-07 17:54:02 +0000
committerJeremy Katz <katzj@redhat.com>2005-10-07 17:54:02 +0000
commit254c327bbf157e433a32050bdd1871356155323d (patch)
tree32b54a015a1c0a3e361b77fb848498ab5b42b400 /scripts
parent8c15b586180e8fe495c93115f4c679d516b5f6b2 (diff)
downloadanaconda-254c327bbf157e433a32050bdd1871356155323d.tar.gz
anaconda-254c327bbf157e433a32050bdd1871356155323d.tar.xz
anaconda-254c327bbf157e433a32050bdd1871356155323d.zip
2005-10-07 Jeremy Katz <katzj@redhat.com>
* loader2/selinux.c (loadpolicy): load_policy changed how it works, let's try to keep it happy if we can instead of having to implement it ourselves. * scripts/upd-instroot (SELINUX): Create an selinux config.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 09c2af638..240c3a774 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -959,6 +959,14 @@ ln -fs jmacs $DESTGR/usr/bin/emacs
ln -fs jpico $DESTGR/usr/bin/pico
ln -fs jpico $DESTGR/usr/bin/nano
+# create selinux config
+if [ -e $DEST/etc/selinux/targeted ]; then
+ cat > $DEST/etc/selinux/config <<EOF
+SELINUX=permissive
+SELINUXTYPE=targeted
+EOF
+cp $DEST/etc/selinux/config $DESTGR/etc/selinux/config
+
echo "Creating nsswitch.conf"
cat > $DEST/etc/nsswitch.conf <<EOF
# munged nsswitch.conf with just what anaconda needs