aboutsummaryrefslogtreecommitdiffstats
path: root/systemd
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 14:07:30 +0100
commita699b59f37660cbdedab22cb66f3279d23d45c87 (patch)
tree7f2c7695473d5fc04ef854239f76ea57a889897a /systemd
parent022c8f22cd102893703115f076884b0743f53bc9 (diff)
downloadinitscripts-a699b59f37660cbdedab22cb66f3279d23d45c87.tar
initscripts-a699b59f37660cbdedab22cb66f3279d23d45c87.tar.gz
initscripts-a699b59f37660cbdedab22cb66f3279d23d45c87.tar.bz2
initscripts-a699b59f37660cbdedab22cb66f3279d23d45c87.tar.xz
initscripts-a699b59f37660cbdedab22cb66f3279d23d45c87.zip
readonly-root: restore selinux context after bind mount (#1029342)
Diffstat (limited to 'systemd')
-rwxr-xr-xsystemd/rhel-readonly2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/rhel-readonly b/systemd/rhel-readonly
index bc2b2bcb..190de26f 100755
--- a/systemd/rhel-readonly
+++ b/systemd/rhel-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