Merge "setfiles consistently"

This commit is contained in:
Jenkins 2015-02-04 22:56:15 +00:00 committed by Gerrit Code Review
commit 807e89f063

View File

@ -3,8 +3,7 @@
set -eux set -eux
set -o pipefail set -o pipefail
if [ -d /sys/fs/selinux -a /etc/selinux/targeted/contexts/files/file_context\ if [ -e /etc/selinux/targeted/contexts/files/file_contexts -a -x /usr/sbin/setfiles ]; then
s -a -x /usr/sbin/setfiles ]; then
# Without fixing selinux file labels, sshd will run in the kernel_t domain # Without fixing selinux file labels, sshd will run in the kernel_t domain
# instead of the sshd_t domain, making ssh connections fail with # instead of the sshd_t domain, making ssh connections fail with
# "Unable to get valid context for <user>" error message # "Unable to get valid context for <user>" error message