diff options
author | Jeremy Katz <katzj@redhat.com> | 2005-10-07 17:54:02 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2005-10-07 17:54:02 +0000 |
commit | 254c327bbf157e433a32050bdd1871356155323d (patch) | |
tree | 32b54a015a1c0a3e361b77fb848498ab5b42b400 /scripts | |
parent | 8c15b586180e8fe495c93115f4c679d516b5f6b2 (diff) | |
download | anaconda-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-x | scripts/upd-instroot | 8 |
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 |