rifsxd
eed685507a
kernel: rename KSU_WITH_KPROBES to KSU_KPROBES_HOOK for better self explanitory
2025-05-21 15:13:17 +06:00
Rifat Azad
785d8143fb
kernel: remove KSU_WITH_KPROBES definition since it's already defined by Kconfig
2025-02-24 01:29:28 +06:00
backslashxx
097451d578
kernel: guard functionality that requires kprobes
...
Since upstream is now making kprobes a requirement, we adapt this tree to still allow
building with manual hooks in an easier way. Furthermore, this also allows a user to
build with manual hooks even with kprobes enabled.
Offending commit:
kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default
upstream: https://github.com/tiann/KernelSU/commit/500ff9b
Other changes:
ksud.c, stop_input_hook(), short-circuit redundant logic left by this change.
cherry pick from: https://github.com/backslashxx/KernelSU/commit/a3d3e93
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-02-23 21:00:59 +06:00
Rifat Azad
8fbddc959a
Revert "kernel: added susfs v1.5.3"
...
This reverts commit bdf81c0880 .
2024-12-24 08:21:10 +06:00
Rifat Azad
bdf81c0880
kernel: added susfs v1.5.3
2024-12-24 07:34:30 +06:00
Rifat Azad
1a84f69f5c
Revert "[1.0] Drop Non-GKI Support ( #1483 )"
...
This reverts commit 97d70b40fc .
2024-12-24 06:54:08 +06:00
Rifat Azad
8d2b017c96
kernel: sync with upstream
2024-12-24 06:53:54 +06:00
Rifat Azad
f2fcb3687b
kernel: cleaned up remaining susfs code
2024-12-16 00:14:07 +06:00
Rifat Azad
e1d30d55af
kernel: implement SuSFS v1.5.2
2024-12-04 16:30:28 +06:00
Ylarod
97d70b40fc
[1.0] Drop Non-GKI Support ( #1483 )
...
Co-authored-by: weishu <twsxtd@gmail.com >
2024-06-01 14:50:46 +08:00
weishu
2efefcea72
kernel: use library import
2024-04-27 09:55:24 +08:00
weishu
d8671b14d1
kernel: clean memory when exit
2024-03-24 16:41:53 +08:00
weishu
478fda6712
kernel: remove become_manager and minor refactors
2024-03-24 11:20:43 +08:00
weishu
68bee049a7
kernel: don't remove from sysfs when debug is enabled
2024-03-18 19:12:56 +08:00
weishu
85e2cd49c8
kernel: remove it from sysfs
2024-03-18 18:50:53 +08:00
weishu
f7c1c078f5
kernel: use ordered work queue to avoid timing issues
2023-08-01 20:47:43 +08:00
dabao1955
54214cdc9c
kernel/ksu.c:Fix word mistakes when enabling CONFIG_KSU_DEBUG ( #724 )
...
According to the instructions in Kconfig, when the `CONFIG_KSU_DEBUG`
option is turned on, KernelSU will run in `debug mode` instead of the
`debug version` mentioned in kernel/ksu.c.
2023-07-08 01:22:06 +08:00
dabao1955
7428ee02d7
change warning about disable kprobes ( #549 )
...
#479
Co-authored-by: dabao1955 <195328750@qq.com >
2023-05-23 10:24:18 +08:00
tiann
dc8e63421d
Revert "Add option to enable global namespace ( #497 )"
...
This reverts commit 00a459a91b .
2023-05-16 22:27:01 +08:00
Hikari-no-Tenshi
00a459a91b
Add option to enable global namespace ( #497 )
...
Disabled by default.
To enable/disable use terminal with root.
To enable:
echo 1 > /sys/module/ksu/parameters/global_namespace_enable
To disable:
echo 0 > /sys/module/ksu/parameters/global_namespace_enable
Value will be reset to 0 (disabled) on reboot.
2023-05-16 11:39:48 +08:00
Ylarod
cdee2f87a1
kernel: update debug warning ( #121 )
2023-01-26 14:32:52 +08:00
Ylarod
443c5867cd
kernel: precise trigger timing of post-fs-data ( #118 )
...
* kernel: add report_event cmd
* ksud: report event
* kernel: trigger on_post_fs_data
* ksud: comment unused code
* [skip ci] run clang-format
Signed-off-by: Ylarod <me@ylarod.cn >
* ci: use custom key to sign official bootimgs
* format ksud
* reject non root
* remove
Signed-off-by: Ylarod <me@ylarod.cn >
2023-01-26 11:29:02 +08:00
Ylarod
9fe636cd47
kernel: fix missing log tag ( #117 )
2023-01-25 22:24:00 +08:00
Ylarod
3d07b7285b
kernel: refact ( #113 )
...
* refact
* sort inlude
* update
* unregister execve kprobe
* update log
* don't unregister if not in kprobe
* opt for no kprobe
* opt for no kprobe
* stop debug
* don't forget to call ksu_uid_observer_exit
* rename core to core_hook
* direct call do_persistent_allow_list
* add prefix
* use getter, add warn
* add wrapper
* run clang-format
clang-format --style="{BasedOnStyle: InheritParentConfig, SortIncludes: true}" -i kernel/**/*.[ch]
* try fix wsa x64 build
2023-01-25 21:53:19 +08:00
Ylarod
ecfe4e9ebd
kernel: allow to change manager in debug mode ( #111 )
2023-01-25 14:50:44 +08:00
weishu
b3fb256445
kernel: enable sucompat iff KPROBES enabled, close #100
2023-01-24 14:38:33 +07:00
Ylarod
3cd2e0d40c
kernel: run ksu_kprobe_init if build as module ( #109 )
2023-01-24 08:42:25 +08:00
weishu
58c1ebaad2
kernel: add __init for init funcs
2023-01-19 16:38:53 +07:00
weishu
029241e3f7
kernel: fix unused-variable
2023-01-19 13:54:42 +07:00
weishu
0b14cac87e
kernel: 1. use prctl lsm hook; 2. refine sucompat hook
2023-01-19 13:31:55 +07:00
weishu
a9dd171f0d
kernel: unify workqueue
2023-01-18 18:37:27 +07:00
Ylarod
88161ba7af
kernel: add null check ( #84 )
2023-01-18 17:05:40 +08:00
Ylarod
5dee70a8fe
kernel: put original group_info ( #82 )
2023-01-18 07:59:26 +08:00
Ylarod
d2c6b9ae8e
kernel: fix panic in #79 ( #80 )
2023-01-17 21:51:19 +08:00
weishu
aa6ab8fcb9
kernel: don't use 0(root uid) as manager init uid
2023-01-17 13:49:30 +07:00
weishu
7da5189377
kernel: add uid observer, correctly prune uid allowlist when app is installed/uninstalled.
2023-01-17 12:44:38 +07:00
weishu
a0852cd7d1
kernel: fix init_groups not exist int 5.15
2023-01-16 16:33:51 +07:00
weishu
610b6aba8b
kernel: setgroup to root for su
2023-01-16 15:43:14 +07:00
weishu
c70917b04c
kernel: version 9
2023-01-16 11:20:27 +07:00
Scirese
d91e4027b5
kernel: make kernel correctly response CMD_GRANT_ROOT ( #73 )
2023-01-15 20:11:21 +08:00
Ylarod
6ad3f47dbd
[skip ci] minor fixup ( #72 )
...
1. update README_CN.md
2. indent fixup
2023-01-15 17:05:08 +08:00
chen2021-web
9150cfedd7
backport to 4.14 ( #59 )
2023-01-15 15:34:15 +08:00
Scirese
f590f95b99
[skip ci] kernel: allow root processes to get version ( #63 )
2023-01-14 21:52:57 +08:00
Ylarod
c4cfd45f2c
kernel: add CONFIG_KSU_DEBUG ( #19 )
...
* Kconfig: add KSU_DEBUG
* print alert on debug mode
* allow shell by default
* store signature to var on debug mode
* format
* export as module_param
* rename apk_sign to kernelsu
2023-01-14 21:45:34 +08:00
weishu
0caaf53c52
kernel: backport to 4.19 ( #36 )
2023-01-10 23:20:32 +08:00
weishu
2f0349ae70
kernel: fix syscall_work version
2023-01-07 20:11:33 +07:00
weishu
17268b5c00
kernel: syscall_work is introduced above 5.10
2023-01-07 20:07:16 +07:00
weishu
a45fd72e5b
kernel: version -> 8
2023-01-04 13:43:53 +07:00
weishu
681a50363b
kernel: version -> 7
2023-01-03 09:21:46 +07:00
weishu
92de8fbccb
kernel: become_manager return true iff it is manager
2022-12-29 16:15:45 +07:00