Commit Graph

24 Commits

Author SHA1 Message Date
LeafStative
05758a975b kernel: fix build (#609)
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
2025-11-20 17:07:33 +08:00
ShirkNeko
118fcf507a kernel: fmt 2025-11-18 21:39:31 +08:00
brokestar233
aa51ef5c24 kernel: kpm: add compatibility for kernel 6.11 and later (#599)
`cb_mutex` has been removed since this commit(https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/include/linux/netlink.h?h=v6.11&id=5fbf57a937f418fe204f9dbb7735e91984f4ee6a) in 6.11. For compatibility reasons, `cb_mutex` should not be used in 6.11 and later versions.

Signed-off-by: brokestar233 <3765589194@qq.com>
2025-11-18 21:33:02 +08:00
ShirkNeko
2075d2867e kernel: Migrating KPM to ioctl 2025-11-04 00:54:38 +08:00
sidex15
ba71b410db kernel: kpm: add compatibility for kernel 4.14 and lower (#76)
`thread_pid` is not defined in kernel 4.14 and lower, leading to compilation issue.
To fix this, use `pids[PIDTYPE_PID].pid` for kernel versions 4.14 and lower.
Else use `thread_pid` for kernel versions 4.19 and higher.

Reference: 107717913b/tracee/tracee.bpf.c (L354)
2025-05-15 23:05:03 +08:00
ShirkNeko
d77ee31bce Add support for KERNEL_VERSION_4_10 in super_access.c and move variable declarations in for loops outside the loop to improve code readability 2025-04-25 19:12:53 +08:00
ShirkNeko
140ebd196f Add support for kernel version 6.12, update conditional compilation definitions in super_access.c 2025-04-15 16:13:16 +08:00
liankong
b7b739824e 添加super_access对task_struct的支持 2025-04-13 14:23:53 +08:00
ShirkNeko
e2f89709d1 Remove macro definitions in super_access.c for kernel version 4.14 to simplify structural definitions 2025-04-12 19:31:39 +08:00
ShirkNeko
546929da55 Remove conditional compilation for kernel version 4.14 in super_access.c to simplify kprobe structure definition 2025-04-12 19:30:55 +08:00
ShirkNeko
97aaea7d86 Remove macro definitions for kernel versions 5.0 and 5.10 in super_access.c, and adjust conditional compilation to support kernel versions 4.14 and 5.15. 2025-04-12 19:07:33 +08:00
ShirkNeko
2cbe1b9e9a Update kernel version macro definitions to add support for kernel version 5.0 and adjust conditional compilation for newer versions 2025-04-12 19:02:52 +08:00
ShirkNeko
51a0357f0f 在 super_access.c 中添加对内核版本 6.6 和 5.15 的宏定义,并调整条件编译以适应新的内核版本 2025-04-12 16:23:27 +08:00
ShirkNeko
44d85cfdd7 在 super_access.c 中添加对内核版本 4.14 的宏定义,并根据内核版本条件编译相关成员 2025-04-12 16:16:06 +08:00
ShirkNeko
662d5494b2 更新内核版本宏定义为 6.1,并相应调整条件编译的成员定义 2025-04-12 16:12:28 +08:00
ShirkNeko
10e05689e5 在 super_access.c 中添加对 linux/version.h 的引用,并根据内核版本条件定义相关成员 2025-04-12 16:09:48 +08:00
ShirkNeko
84b215f989 移除 super_access.c 中不必要的 break_handler 成员定义 2025-04-12 15:20:44 +08:00
ShirkNeko
4e950183e3 移除 super_access.c 中不必要的 linux/nsproxy.h 头文件引用 2025-04-12 15:19:29 +08:00
ShirkNeko
95d3eac98e 在 super_access.c 中添加对 fs/mount.h 的引用 2025-04-12 15:15:56 +08:00
ShirkNeko
61eb7203c4 在 super_access.c 中添加对 linux/nsproxy.h 的引用 2025-04-12 15:02:44 +08:00
ShirkNeko
a96367a177 Remove unnecessary header file fs/mount.h and use linux/mount.h instead. 2025-04-12 14:53:00 +08:00
liankong
b002bcd38a Add super_access.c and super_access.h files to define the functions related to dynamically accessing structures. 2025-04-12 13:57:59 +08:00
ShirkNeko
bae61b03c5 Add dynamic structure metadata support to enhance readability and maintainability of kernel modules 2025-04-11 17:33:47 +08:00
ShirkNeko
743ddce9f7 添加 KPM 模块支持,包括 KPM 配置选项、核心功能实现及相关头文件 2025-03-30 02:54:23 +08:00