aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/fedora-readonly
diff options
context:
space:
mode:
authorVáclav Pavlín <vpavlin@redhat.com>2013-11-12 12:22:43 +0100
committerVáclav Pavlín <vpavlin@redhat.com>2013-11-12 12:23:57 +0100
commit3f42f2f0888808f6e631b962fd0c92275c701d1d (patch)
tree83586d364bc339b1942204f16f97b480833d2e8f /systemd/fedora-readonly
parentdf250692824f0fabca1c65f4b22a3c3c461a6b13 (diff)
downloadinitscripts-3f42f2f0888808f6e631b962fd0c92275c701d1d.tar
initscripts-3f42f2f0888808f6e631b962fd0c92275c701d1d.tar.gz
initscripts-3f42f2f0888808f6e631b962fd0c92275c701d1d.tar.bz2
initscripts-3f42f2f0888808f6e631b962fd0c92275c701d1d.tar.xz
initscripts-3f42f2f0888808f6e631b962fd0c92275c701d1d.zip
readonly-root: restore selinux context after bind mount (#1029342)
Diffstat (limited to 'systemd/fedora-readonly')
-rwxr-xr-xsystemd/fedora-readonly2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/fedora-readonly b/systemd/fedora-readonly
index bc2b2bcb..190de26f 100755
--- a/systemd/fedora-readonly
+++ b/systemd/fedora-readonly
@@ -102,7 +102,6 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
*)
;;
esac
- selinux_fixup "$path"
done < <(cat $file)
done
@@ -118,6 +117,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
[[ $prefix -eq 1 ]] && continue
mount -n --bind "$RW_MOUNT$m" "$m"
+ selinux_fixup "$m"
done
# Use any state passed by initramfs