From cad85ca0329d2dd51c2cde5eea5f6315a5a28d3c Mon Sep 17 00:00:00 2001 From: zer0-1s <62493040+zer0-1s@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:22:27 +0800 Subject: [PATCH] Fix the compilation error of 24-hide (#145) Co-authored-by: zer0_1s --- src/24-hide/pidhide.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/24-hide/pidhide.bpf.c b/src/24-hide/pidhide.bpf.c index 70fe1ec8..4e022904 100644 --- a/src/24-hide/pidhide.bpf.c +++ b/src/24-hide/pidhide.bpf.c @@ -58,7 +58,7 @@ const volatile int target_ppid = 0; // of the PID to hide. This becomes the name // of the folder in /proc/ const volatile int pid_to_hide_len = 0; -const volatile char pid_to_hide[MAX_PID_LEN]; +const volatile char pid_to_hide[MAX_PID_LEN] = ""; // struct linux_dirent64 { // u64 d_ino; /* 64-bit inode number */