From eeec52b1604ef850c7d8b63dab0a72bb197a3000 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 14 May 2024 11:40:50 +0200 Subject: [PATCH] Update tests_mac_frameworks Changed check from is executable to is not empty --- include/tests_mac_frameworks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tests_mac_frameworks b/include/tests_mac_frameworks index ca454529..207a98f5 100644 --- a/include/tests_mac_frameworks +++ b/include/tests_mac_frameworks @@ -158,7 +158,7 @@ Display --indent 6 --text "- Checking current mode and config file" --result "${STATUS_WARNING}" --color RED fi Display --indent 8 --text "Current SELinux mode: ${FIND}" - if [ -x "$SEMANAGEBINARY" ]; then + if [ -n "${SEMANAGEBINARY}" ]; then PERMISSIVE=$(${SEMANAGEBINARY} permissive --list --noheading | ${TRBINARY} '\n' ' ') NPERMISSIVE=$(${SEMANAGEBINARY} permissive --list --noheading | ${WCBINARY} -l) Display --indent 8 --text "Found ${NPERMISSIVE} permissive SELinux object types"