From b215e215dc5a57b8519a2015837e1e5101aa0b8b Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: May 27 2013 19:08:08 +0000 Subject: live-desktop.ks: restore homedir permissions same way the other spins do it --- diff --git a/fedora-live-desktop.ks b/fedora-live-desktop.ks index b582183..6bfd535 100644 --- a/fedora-live-desktop.ks +++ b/fedora-live-desktop.ks @@ -37,7 +37,6 @@ FOE # don't run gnome-initial-setup mkdir ~liveuser/.config touch ~liveuser/.config/gnome-initial-setup-done -chown -R liveuser:liveuser ~liveuser/.config # make the installer show up if [ -f /usr/share/applications/liveinst.desktop ]; then @@ -56,7 +55,6 @@ FOE mkdir -p ~liveuser/.config/autostart cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/ cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/ - chown -R liveuser:liveuser /home/liveuser/.config/ fi fi @@ -75,6 +73,10 @@ if [ -f /etc/PackageKit/CommandNotFound.conf ]; then sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf fi +# make sure to set the right permissions and selinux contexts +chown -R liveuser:liveuser /home/liveuser/ +restorecon -R /home/liveuser/ + EOF %end