From 3f42f2f0888808f6e631b962fd0c92275c701d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Pavl=C3=ADn?= Date: Tue, 12 Nov 2013 12:22:43 +0100 Subject: readonly-root: restore selinux context after bind mount (#1029342) --- systemd/fedora-readonly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'systemd') 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 -- cgit v1.2.1