mirror of
https://github.com/rancher/os.git
synced 2025-08-08 02:04:13 +00:00
Update SELinux files in installer
This commit is contained in:
parent
b6ddb4f577
commit
45712bef22
@ -194,6 +194,15 @@ grub2_config "${KERNEL_ARGS}"
|
|||||||
pvgrub_config "${KERNEL_ARGS}"
|
pvgrub_config "${KERNEL_ARGS}"
|
||||||
install_rancher
|
install_rancher
|
||||||
|
|
||||||
|
seusers=${BASE_DIR}/etc/selinux/ros/seusers
|
||||||
|
failsafe_context=${BASE_DIR}/etc/selinux/ros/contexts/failsafe_context
|
||||||
|
if [ -f "${seusers}" ]; then
|
||||||
|
echo "__default__:unconfined_u:s0-s0:c0.c1023" > ${seusers}
|
||||||
|
fi
|
||||||
|
if [ -f "${failsafe_context}" ]; then
|
||||||
|
echo "unconfined_r:unconfined_t:s0" > ${failsafe_context}
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$KEXEC" = "y" ]; then
|
if [ "$KEXEC" = "y" ]; then
|
||||||
if [ "$APPEND" = "" ]; then
|
if [ "$APPEND" = "" ]; then
|
||||||
APPEND=$(cat /proc/cmdline)
|
APPEND=$(cat /proc/cmdline)
|
||||||
|
Loading…
Reference in New Issue
Block a user