Browse Source

fix(susfs): follow symlinks when hunting selinux_hide.c

The Next checkout lives behind a symlinked dir; plain find missed it.
TheWildJames 3 days ago
parent
commit
60ff11e2d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/actions/susfs-patches/action.yml

+ 1 - 1
.github/actions/susfs-patches/action.yml

@@ -111,7 +111,7 @@ runs:
      run: |
       if [ "$(printf '%s\n' "6.6" "$KERNEL_VER" | sort -V | head -n1)" = "6.6" ]; then
         echo "[*] KVER $KERNEL_VER >= 6.6, stripping static from with_policy helpers"
-        for f in $(find "$COMMON" -name selinux_hide.c 2>/dev/null); do
+        for f in $(find -L "$COMMON" -name selinux_hide.c 2>/dev/null); do
           if grep -q "^static int security_context_to_sid_with_policy" "$f"; then
             echo "[*] Stripping static from $f helpers"
             sed -i 's/^static int security_context_to_sid_with_policy/int security_context_to_sid_with_policy/g' "$f"