AlexLiuDev233
704f7cba32
kernel: core_hook: disable seccomp in 5.10.2- for allowed uids ( #545 )
...
* kernel: core_hook: disable seccomp in 5.10.2- for allowed uids
we dont have those new fancy things upstream has
lets just do original thing where we disable seccomp
* Update kernel/core_hook.c
* fmt
---------
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
Co-authored-by: Saksham <saksham.mac@icloud.com >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-08 12:46:25 +08:00
ShirkNeko
d37a78ea2d
fix build & cleanup
2025-11-08 11:48:35 +08:00
Ylarod
6c9bf69718
fix build
2025-11-08 11:37:07 +08:00
Ylarod
776bcc4d5d
rename to proxy_file
2025-11-08 11:36:15 +08:00
ShirkNeko
bf5cb885b5
kernel: remove devpts hook
2025-11-08 11:28:23 +08:00
Wang Han
a533a490bd
Use force_sig(SIGKILL) to kill process
2025-11-08 01:34:44 +08:00
Shadichy
c6d9f76c7b
kernel: Refactor selinux/selinux.c ( #2881 )
...
Signed-off-by: shadichy <shadichy@blisslabs.org >
Co-authored-by: Wang Han <416810799@qq.com >
2025-11-08 01:34:23 +08:00
Wang Han
66032391af
Switch kretprobe to heap ( #2880 )
...
Co-authored-by: Ylarod <me@ylarod.cn >
2025-11-07 18:39:53 +08:00
Wang Han
da0e16bd26
Replace mutex with spinlock for tracepoint registration ( #2882 )
2025-11-07 18:37:12 +08:00
ShirkNeko
53d763cdf9
manager: Implement editable and removable mount points for LKM
2025-11-07 15:37:04 +08:00
ShirkNeko
9ebddde0d5
kernel: Avoid calling umount whilst holding a spinlock.
2025-11-07 14:23:58 +08:00
ShirkNeko
03a164ebb7
kernel: By default, MNT_DETACH is used as the value for the mount point.
2025-11-07 13:37:09 +08:00
ShirkNeko
9b209765c4
kernel: Implementing editable, removable mount points
2025-11-07 12:16:42 +08:00
ShirkNeko
d7c101e244
kernel: Fix compilation
2025-11-07 11:33:02 +08:00
Ylarod
14fea6f8a3
build: remove -Wno-implicit-function-declaration
2025-11-07 11:02:48 +08:00
5ec1cff
826661dffb
feature: add devpts fd wrapper ( #21 )
...
This feature is intended to resolve devpts problem.
2025-11-06 23:56:53 +08:00
ShirkNeko
f86c71efc5
Compilation fix
2025-11-06 23:26:55 +08:00
Ylarod
06018a2f03
revert: still using workqueue for allowlist
2025-11-06 23:05:29 +08:00
Ylarod
1324a7f54e
fix: enhanced security register
2025-11-06 23:02:27 +08:00
Ylarod
5df9431a22
kill pgrp in enhanced security
2025-11-06 23:01:59 +08:00
Ylarod
e54989e51a
add mutex for sucompat mark
2025-11-06 23:01:45 +08:00
Ylarod
cf50be122e
fix: sucompat ( #2874 )
...
Co-authored-by: Wang Han <416810799@qq.com >
2025-11-06 23:01:28 +08:00
ShirkNeko
3dde6d9a25
manager: some ui changes
...
* Steeing: add enhanced security dropdown
* Settings: allow change module update check
* Settings: allow always enable/disable feat
* misc: update all deps
---------
Co-authored-by: weishu <twsxtd@gmail.com >
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: YuKongA <70465933+YuKongA@users.noreply.github.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-06 22:54:43 +08:00
ShirkNeko
132e9ef8ed
kernel: Resolve compilation issues
2025-11-06 13:48:26 +08:00
ShirkNeko
e6436b340c
kernel: clean headers
...
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-06 13:08:01 +08:00
weishu
9cdf98782d
kernel: Set the tracepoint flag in a tracepoint manner
2025-11-06 13:02:13 +08:00
Ylarod
dece57cacf
feature: add enhanced security ( #2873 )
2025-11-06 12:59:09 +08:00
weishu
c8e103062a
kernel: remove unused workqueue
2025-11-06 12:56:00 +08:00
Ylarod
91312effba
fix sepolicy patch hint ( #2872 )
2025-11-06 12:53:09 +08:00
Ylarod
fd60cda3b3
fix: mark tif ( #2871 )
2025-11-06 12:52:52 +08:00
ShirkNeko
5323a500dd
kernel: use sys_enter tracepoint for sucompat ( #533 )
...
* use sys_enter tracepoint for sucompat
* update sucompat rules
* clean tif mark
* mark tif after load allow list
* clear all tif first, then mark target
* Fix shell su
* allow when escape
* fix bugs
* kernel: Resolve logical inconsistencies
---------
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-06 12:45:37 +08:00
ShirkNeko
0ce7bc2627
kernel: Migrate manual_su to ioctl
2025-11-06 02:52:14 +08:00
libingxuan
c9c62b25d2
support mainline kernel ( #2869 )
2025-11-05 23:00:42 +08:00
ShirkNeko
f8904b1b02
kernel: Resolved permission verification issue
2025-11-05 19:04:51 +08:00
ShirkNeko
89ce65e8ba
Use a more appropriate minor version number
2025-11-05 16:41:30 +08:00
ShirkNeko
994fdfddf2
kernel: Use CONFIG_KSU_MANUAL_SU to protect MANUAL_SU
2025-11-05 16:17:54 +08:00
ShirkNeko
557e7f8153
bump KSU_VERSION_API to 4.0.0
2025-11-05 16:07:23 +08:00
backslashxx
9e9bb685f0
kernel: supercall: allow escalation on ioctl interface ( #2862 )
...
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-11-05 15:52:00 +08:00
ShirkNeko
0400b94674
v2.0.0
2025-11-05 15:43:10 +08:00
ShirkNeko
247f7d4aee
Kernel: Enable processes with corresponding UIDs to utilise netlink, and optimise netlink functionality
2025-11-05 15:41:14 +08:00
ShirkNeko
088ce97697
kernel: Remove prctl; use netlink communication to control manual_su
2025-11-05 03:53:54 +08:00
ShirkNeko
c0a86544d8
kernel: Remove macro definitions, pass variables using ccflags -y, and reapply manual su protection.
...
kernel: stop printing useless message unless its ddk environment
* In-tree build show empty KDIR
-- KDIR:
-- MDIR: /home/runner/work/KernelSU-Test/KernelSU-Test/kernel_414/KernelSU/kernel
AR drivers/iommu/built-in.o
CC drivers/input/misc/uinput.o
-- KernelSU version: 12329
-- KernelSU: CONFIG_KSU_MANUAL_HOOK
-- Supported KernelSU Manager(s): tiann, rsuntk, 5ec1cff
CC drivers/kernelsu/ksu.o
AR drivers/input/joystick/built-in.o
CC drivers/hid/hid-roccat-pyra.o
Co-authored-by: Faris <rissu.ntk@gmail.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-05 02:18:38 +08:00
weishu
47bd84f3d1
kernel: init/exit umount feature
2025-11-04 22:29:55 +08:00
weishu
1439e486a1
kernel: rework umount with task_work
2025-11-04 21:57:10 +08:00
ShirkNeko
801bcb0e1f
Revert "Implement workqueue for unmounting"
2025-11-04 21:55:00 +08:00
Ylarod
54b5fb5fdb
ignore user settings
2025-11-04 21:29:19 +08:00
ShirkNeko
46fefc299c
kernel: Remove CONFIG_KSU_MANUAL_SU protection
2025-11-04 21:28:39 +08:00
ShirkNeko
23cc0ceff1
Revert "ci: bump ddk to 20251104, fix android16-6.12 lkm"
...
This reverts commit 257f0ca6de .
2025-11-04 21:08:24 +08:00
backslashxx
8177afa81e
kernel: core_hook: provide a better reboot handler ( #523 )
...
* Revert "feat: try manual reboot hook (#521 )"
This reverts commit 1853d9decf .
* kernel: core_hook: provide a better reboot handler
I propose that you pass cmd and arg as reference.
this is so we can have much more extendable use of that pointer
kernel: core_hook: provide sys_reboot handler
- 2e2727d56c
kernel: kp_ksud: add sys_reboot kp hook
- 03285886b0
I'm proposing passing arg as reference to arg pointer and also pass int cmd
we can use it to pass numbers atleast.
for advanced usage, we can use it as a delimiter so we can pass a pointer to array.
example pass a char *array[] which decays to a char ** and then use cmd as the number of array members.
we can pass the pointer of the first member of the array and use cmd as the delimiter (count) of members.
for simpler usecase, heres some that I added.
kernel: core_hook: expose umount list on sys_reboot interface
- 352de41e4b
kernel: core_hook: expose nuke_ext4_sysfs to sys_reboot interface
- 83fc684ccb
ksud: add cmd for add-try-umount, wipe-umount-list and nuke-ext4-sysfs
- a4eab4b8c3
more usage demos
https://github.com/backslashxx/lkm_template/tree/write-pointer-on-pointer
https://github.com/backslashxx/lkm_template/tree/pointer-reuse
I actually proposed sys_reboot upstream because of this pointer that is very usable.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
---------
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-11-04 19:51:40 +08:00
ShirkNeko
257f0ca6de
ci: bump ddk to 20251104, fix android16-6.12 lkm
...
-kernel: Using macros to control manual su operations
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-04 19:44:43 +08:00