backslashxx
8d066b9ec5
kernel: expose KSU_LSM_SECURITY_HOOKS on Kconfig ( #77 )
...
disabling this removes the need for LSM_HOOK_INIT, security_add_hooks and such,.
furthermore, this will also allow easier integration on pre-4.1 kernels.
Expose this and make it a configurable option.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-05-15 20:28:44 +08:00
sidex15
db547eecf1
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 17:38:34 +08:00
ShirkNeko
0973cd1ae0
kernel: handle samsung selinux driver
...
* Some samsung kernel source have SEC_SELINUX_PORTING_COMMON
* This commit mayfix false warning to sepolicy.
Mayfix: I haven't test it yet
Signed-off-by: rsuntk <90097027+rsuntk@users.noreply.github.com >
2025-05-12 19:29:25 +08:00
ShirkNeko
c98cf121dc
Optimized SELinux compatibility support, adapted data structures to support 32-bit and 64-bit kernels
...
Co-authored-by: rsuntk <rsuntk@yukiprjkt.my.id >
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-05-12 19:24:40 +08:00
ShirkNeko
037c5b6c73
kernel: rename KernelSU to SukiSU and update versioning logic
2025-05-10 14:12:48 +08:00
ShirkNeko
9d920e7cc5
kernel: added compatibility for non-GKI devices
...
Co-authored-by: rsuntk <rsuntk@yukiprjkt.my.id >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
Signed-off-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-05-10 13:19:30 +08:00
ShirkNeko
acf2e1a5ec
Update KSU_GIT_VERSION to use the master branch count and change the KernelSU manager name to SukiSU
2025-04-21 17:33:29 +08:00
ShirkNeko
33dd0ca16b
Add check for GKI version and KERNEL_TYPE setting
2025-04-19 21:44:41 +08:00
liankong
1944a49fd8
添加super_access对task_struct的支持
2025-04-13 14:41:06 +08:00
ShirkNeko
06324def38
更新super_access.c to remove redundant macro definitions and optimize conditional compilation; use resource strings instead of hard-coded text in MoreSettings.kt; add theme color string resource in strings.xml
2025-04-13 01:33:40 +08:00
ShirkNeko
70259a5ec5
清理super_access.c中的多余空行
2025-04-12 17:00:14 +08:00
ShirkNeko
a63057c594
Merge branch 'dev' into main
2025-04-12 16:55:20 +08:00
ShirkNeko
48d5270611
Add super_access function to support dynamic access to structures and members
2025-04-12 16:52:13 +08:00
ShirkNeko
712d0f3342
更新super_access.c以支持不同内核版本的结构体成员定义
2025-04-12 16:29:13 +08:00
ShirkNeko
d6084aeca1
在super_access.c中添加对linux/version.h的引用,并定义KERNEL_VERSION_6_6宏,以支持不同内核版本的条件编译
2025-04-12 16:09:13 +08:00
ShirkNeko
562b9624d7
移除对linux/nsproxy.h的引用,并添加对../fs/mount.h的引用
2025-04-12 15:49:00 +08:00
ShirkNeko
a68d5e8bbe
在super_access.c中添加对linux/nsproxy.h的引用
2025-04-12 15:02:22 +08:00
ShirkNeko
d45aa8197e
Remove unnecessary header file fs/mount.h and use linux/mount.h instead.
2025-04-12 14:54:10 +08:00
ShirkNeko
314d3ef97a
更新Makefile以使用super_access.o替代super_access.c
2025-04-12 14:44:50 +08:00
liankong
e3750ccd51
完善super_access
2025-04-12 10:35:08 +08:00
liankong
a712efe9d8
添加super_access机制
2025-04-12 00:34:37 +08:00
liankong
569183efe9
添加super_access机制
2025-04-11 15:19:18 +08:00
liankong
f0febf13f2
增加了两个必要的兼容函数,以确保能够运行Peekaboo.KPM
2025-04-07 19:43:06 +08:00
liankong
e9d0526e1b
1
2025-04-01 12:28:59 +08:00
liankong
8055aed507
Merge branch 'dev' of https://github.com/ShirkNeko/SukiSU-Ultra into dev
2025-03-31 20:28:31 +08:00
liankong
e7cef05c6a
修复
2025-03-31 20:28:26 +08:00
ShirkNeko
313746b578
Merge branch 'dev' of https://github.com/ShirkNeko/SukiSU-Ultra into dev
2025-03-31 20:27:40 +08:00
ShirkNeko
a7c557222c
修复Makefile中KPM状态信息的重复输出
2025-03-31 20:27:28 +08:00
liankong
9c902fb264
2
2025-03-31 20:24:56 +08:00
liankong
079f74d960
更改返回值处理方式
2025-03-31 19:47:22 +08:00
liankong
00d7de5276
1
2025-03-31 19:07:07 +08:00
liankong
3e928365de
1
2025-03-31 18:51:20 +08:00
liankong
47ba174fb1
尝试支持clang关闭优化
2025-03-31 18:31:21 +08:00
liankong
9446296daa
尝试禁用对壳函数的优化
2025-03-31 18:19:55 +08:00
liankong
1b06f7d317
关掉所有对壳函数的优化
2025-03-31 18:08:09 +08:00
liankong
dec9a72b41
增加壳函数信息打印
2025-03-31 17:17:21 +08:00
liankong
593cbaa067
添加壳函数防止被inline优化掉
2025-03-31 16:55:51 +08:00
liankong
fb8906e371
4
2025-03-31 16:19:52 +08:00
liankong
df943250ac
3
2025-03-31 16:07:29 +08:00
liankong
6b3d2bef12
1
2025-03-31 15:22:30 +08:00
liankong
2e711c3ac9
3
2025-03-31 15:13:13 +08:00
liankong
78fe01d9a4
2
2025-03-31 14:30:43 +08:00
liankong
60cb41c76b
1
2025-03-31 14:04:04 +08:00
liankong
af78f3bac4
转变为仅在内核留下Stub在外部加载KPM
2025-03-31 13:55:48 +08:00
liankong
fff86dcc8d
4
2025-03-30 21:06:56 +08:00
liankong
5ec053ca34
3
2025-03-30 20:39:23 +08:00
liankong
e9f1631b06
根据KP修复
2025-03-30 20:29:43 +08:00
liankong
3db338da3e
2
2025-03-30 20:10:50 +08:00
liankong
d126d0f5b8
1
2025-03-30 20:03:40 +08:00
liankong
549adebb30
Merge branch 'dev' of https://github.com/ShirkNeko/SukiSU-Ultra into dev
2025-03-30 19:56:18 +08:00