aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Vrabec <lvrabec@redhat.com>2016-07-15 16:15:50 +0200
committerLukas Nykryn <lnykryn@redhat.com>2016-07-15 16:18:38 +0200
commit4ae046fa78ff7d9ba94462991d0268f644b0f532 (patch)
treeab04ab6a6b3904a0ad686ab6d3ec43f092dd1dbc
parentb722b4ae622c2c528400084bb8cba9a99bf6cac2 (diff)
downloadinitscripts-4ae046fa78ff7d9ba94462991d0268f644b0f532.tar
initscripts-4ae046fa78ff7d9ba94462991d0268f644b0f532.tar.gz
initscripts-4ae046fa78ff7d9ba94462991d0268f644b0f532.tar.bz2
initscripts-4ae046fa78ff7d9ba94462991d0268f644b0f532.tar.xz
initscripts-4ae046fa78ff7d9ba94462991d0268f644b0f532.zip
import-state: restore also sensitivity part of SELinux context
Cherry-picked from: 481aa46e866fc6d99d954d9cf9cd2ab1898e0f84 Resolves: #1353975
-rwxr-xr-xsystemd/rhel-import-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/rhel-import-state b/systemd/rhel-import-state
index fddb5711..9ac9c380 100755
--- a/systemd/rhel-import-state
+++ b/systemd/rhel-import-state
@@ -7,5 +7,5 @@ find . -mindepth 1 -maxdepth 1 -exec cp -av -t / {} \;
# run restorecon on the copied files
if [ -e /sys/fs/selinux/enforce -a -x /usr/sbin/restorecon ]; then
- find . -mindepth 1 -print0 | { cd / && xargs --null restorecon -i; }
+ find . -mindepth 1 -print0 | { cd / && xargs --null restorecon -iF; }
fi