Skip to content

Commit

Permalink
trigger autorelabel also in permissive mode (Closes: #54)
Browse files Browse the repository at this point in the history
  • Loading branch information
asciiprod committed Nov 2, 2022
1 parent 08cc882 commit 0bc8fdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion almalinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ run_os_specific_functions() {
randomize_mdadm_array_check_time

# selinux autorelabel if enabled
egrep -q "SELINUX=enforcing" "$FOLD/hdd/etc/sysconfig/selinux" &&
egrep -q "SELINUX=(enforcing|permissive)" "$FOLD/hdd/etc/sysconfig/selinux" &&
touch "$FOLD/hdd/.autorelabel"

return 0
Expand Down
2 changes: 1 addition & 1 deletion centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ run_os_specific_functions() {
fi

# selinux autorelabel if enabled
egrep -q "SELINUX=enforcing" "$FOLD/hdd/etc/sysconfig/selinux" &&
egrep -q "SELINUX=(enforcing|permissive)" "$FOLD/hdd/etc/sysconfig/selinux" &&
touch "$FOLD/hdd/.autorelabel"

((IMG_VERSION >= 69)) && mkdir -p "$FOLD/hdd/var/run/netreport"
Expand Down
2 changes: 1 addition & 1 deletion rockylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ run_os_specific_functions() {
randomize_mdadm_array_check_time

# selinux autorelabel if enabled
egrep -q "SELINUX=enforcing" "$FOLD/hdd/etc/sysconfig/selinux" &&
egrep -q "SELINUX=(enforcing|permissive)" "$FOLD/hdd/etc/sysconfig/selinux" &&
touch "$FOLD/hdd/.autorelabel"

return 0
Expand Down

0 comments on commit 0bc8fdc

Please sign in to comment.