diff options
author | Lukas Vrabec <lvrabec@redhat.com> | 2016-07-15 16:15:50 +0200 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2016-07-15 16:18:38 +0200 |
commit | 4ae046fa78ff7d9ba94462991d0268f644b0f532 (patch) | |
tree | ab04ab6a6b3904a0ad686ab6d3ec43f092dd1dbc /systemd | |
parent | b722b4ae622c2c528400084bb8cba9a99bf6cac2 (diff) | |
download | initscripts-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
Diffstat (limited to 'systemd')
-rwxr-xr-x | systemd/rhel-import-state | 2 |
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 |