2013-05-14 00:03:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-05-16 02:33:24 +00:00
|
|
|
set -x
|
|
|
|
|
2013-05-14 00:03:24 +00:00
|
|
|
# Without fixing selinux file labels, sshd will run in the kernel_t domain
|
|
|
|
# instead of the sshd_t domain, making ssh connections fail with
|
|
|
|
# "Unable to get valid context for <user>" error message
|
2013-05-16 02:33:24 +00:00
|
|
|
setfiles /etc/selinux/targeted/contexts/files/file_contexts /
|
|
|
|
FIXFILES_LOG=$(mktemp)
|
|
|
|
fixfiles -l $FIXFILES_LOG restore
|
|
|
|
cat $FIXFILES_LOG
|
|
|
|
rm $FIXFILES_LOG
|