mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-09-19 06:36:01 +00:00
fix(scripts): detect selinux with getenforce
chcon is widely available in coreutils, even if the system doesn't support selinux.
This commit is contained in:
@@ -465,7 +465,7 @@ check_environment_systemd() {
|
||||
}
|
||||
|
||||
check_environment_selinux() {
|
||||
if ! has_command chcon; then
|
||||
if ! has_command getenforce; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user