From 102a0308c2871cce0f6df7c6f0f2b45ed3b9345b Mon Sep 17 00:00:00 2001 From: WrightNed <114073970+WrightNed@users.noreply.github.com> Date: Sun, 18 Feb 2024 13:51:09 +0200 Subject: [PATCH] Fix getenforce redirection --- nodes/orchestration/package/open-appsec-ctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/orchestration/package/open-appsec-ctl.sh b/nodes/orchestration/package/open-appsec-ctl.sh index 5f10a08..6e5adec 100644 --- a/nodes/orchestration/package/open-appsec-ctl.sh +++ b/nodes/orchestration/package/open-appsec-ctl.sh @@ -1028,7 +1028,7 @@ run_status() # Initials - rs print_single_service_status "$service" done - if command -v getenforce &>/dev/null && [ "$(getenforce)" != "Disabled" ]; then + if command -v getenforce >/dev/null 2>&1 && [ "$(getenforce)" != "Disabled" ]; then echo "SELinux has been detected, which could potentially disrupt the agent's normal operation." fi }