From 6c026dad6e5ec29ac50a5ebf28dda9e4dec4403f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B1=AA?= <2223128221@qq.com> Date: Wed, 24 Jul 2024 14:18:11 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E4=BF=AE=E5=A4=8D5.x=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E7=89=88=E6=9C=ACrmdir=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0inod?= =?UTF-8?q?e=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BPF/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BPF/file.c b/src/BPF/file.c index f4b9993..8ad4949 100644 --- a/src/BPF/file.c +++ b/src/BPF/file.c @@ -456,7 +456,8 @@ int trace_enter_unlinkat(struct sys_enter_unlinkat_args* ctx) { return 0; } -SEC("kprobe/vfs_rmdir") +// SEC("kprobe/vfs_rmdir") +SEC("kprobe/security_inode_rmdir") int kprobe_vfs_rmdir(struct pt_regs* ctx) { u64 tgid_pid; u32 tgid, pid; -- Gitee