301c3c4475
Rather than dublicating code to implement rhel or any other derivitive, this patch introduces an rpm-distro element that should be used as a dependency. Change-Id: I8a92bb041764d03f430b438f0013704f79a8674c
12 lines
No EOL
371 B
Bash
Executable file
12 lines
No EOL
371 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# 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
|
|
setfiles /etc/selinux/targeted/contexts/files/file_contexts /
|
|
FIXFILES_LOG=$(mktemp)
|
|
fixfiles -l $FIXFILES_LOG restore
|
|
cat $FIXFILES_LOG
|
|
rm $FIXFILES_LOG |