From 4ae046fa78ff7d9ba94462991d0268f644b0f532 Mon Sep 17 00:00:00 2001 From: Lukas Vrabec Date: Fri, 15 Jul 2016 16:15:50 +0200 Subject: import-state: restore also sensitivity part of SELinux context Cherry-picked from: 481aa46e866fc6d99d954d9cf9cd2ab1898e0f84 Resolves: #1353975 --- systemd/rhel-import-state | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1