ShirkNeko
76046c84cd
kernel: remove unused kernel_compat
...
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-08 19:39:41 +08:00
weishu
623dd15cbf
kernel: Use real_parent to avoid interference from ptrace.
2025-11-08 19:30:55 +08:00
ShirkNeko
ab13ed5c16
kernel: remove unused wrapper for
...
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-08 19:30:44 +08:00
weishu
e171ca15cb
kernel: remove ksu_compat_{open,read,write} because we're in the right context now
...
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-08 19:28:25 +08:00
ShirkNeko
4fc369a059
kernel: remove workqueue for allowlist
...
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-08 19:18:20 +08:00
ShirkNeko
18ad2afadb
Reworking fdwrapper
...
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com >
Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com >
Co-authored-by: Ylarod <me@ylarod.cn >
2025-11-08 19:03:14 +08:00
technotic
1b5b235bd9
add include for crc32.h in sulog.h (for dedup_calc_hash) ( #548 )
...
Co-authored-by: technotic <pixie@technotic.us >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-08 18:12:38 +08:00
AlexLiuDev233
fdf5e7104e
refactor: kpm: memory management migrate to sukisu side ( #539 )
...
* refactor: kpm: memory management migrate to sukisu side
* fix: build warning in some gki2 device
fix stack frame size warning (maybe) in gki2 device, specialy in ShirkNeko's device
* chore: use pr_info instead of printk
* feat: check the validity of pointers sent from user space
Sometimes, ksud or other root processes might request a kpm ioctl,
but data incorrectly, such as invalid pointer,
which cause the kernel to crash.
If the request is made by ksud at boot time, the situation is even worse,
as it can cause the system to enter the boot loop.
Therefore, I believe we need to check pointer integrity in kernel space to fix this problem.
---------
Co-authored-by: Saksham <typeflu@gmail.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-08 18:11:29 +08:00
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