File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,16 @@ jobs:
176176 sed -i '/#include <trace\/hooks\/blk.h>/a #include <trace/hooks/fs.h>' ./fs/namespace.c
177177 fi
178178 patch -p1 < 50_add_susfs_in_gki-${{ inputs.android_version }}-${{ inputs.kernel_version }}.patch || true
179+
180+ KERNEL_VERSION="${{ inputs.kernel_version }}"
181+ MIN_VERSION="5.16"
182+
183+ if [ "$(printf '%s\n' "$KERNEL_VERSION" "$MIN_VERSION" | sort -V | head -n1)" = "$KERNEL_VERSION" ]; then
184+ echo "Patching ptrace!"
185+ curl -Ls https://raw.githubusercontent.com/fatalcoder524/kernel_patches_additional/refs/heads/main/ptrace.patch | patch -p1 -F 3
186+ else
187+ echo "Kernel >= $MIN_VERSION, skipping ptrace patch"
188+ fi
179189
180190 - name : Apply KSUN Hooks
181191 run : |
You can’t perform that action at this time.
0 commit comments