tiann
77056a7100
kernel: remove unused poll wait becuase we always call this in post-fs-data, no need to wait for /data mounted
2023-03-08 15:45:56 +08:00
weishu
683ba112aa
kernel: add prefix to avoid symbol confliction
2023-02-20 18:51:59 +07:00
f19
0c322a33bc
kernel: fix filp_open on older kernel's kworker ( #205 )
...
On older kernel, kworker missing keyring from init process , and this
keyring is related to FBE , which causes filp_open return ENOKEY or
other errors.To fix this,just install init's keyring to per
kworkers.This works on Kernel 4.4 and 4.9.
2023-02-05 07:14:59 +08:00
f19
4f2b8b7077
kernel: backport to 4.4 ( #166 )
...
These changes make KernelSU work on kernel4.4
[link](https://github.com/F-19-F/android_kernel_oneplus_msm8998 ).
LINUX_VERSION_CODE macro changes have been vertied on 4.4 4.9 4.14.
For kernel 4.4,just pick two commits
* [introduce
KernelSU](2993524f2f )
* [allow init exec ksud under
nosuid](3df9df42a6 )
2023-02-01 19:48:36 +08:00
skbeh
46913671a8
kernel, ksud: collect binaries into /data/adb/ksu ( #161 )
2023-02-01 17:58:58 +08:00
Ylarod
db600d5ea0
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
22b66b6672
kernel: opt allowlist persist and log ( #119 )
...
* kernel: persist on need
* kernel: opt log for ksu_allow_uid
2023-01-26 08:55:27 +08:00
Ylarod
06aaae1335
kernel: fix missing log tag ( #117 )
2023-01-25 22:24:00 +08:00
Ylarod
2f970f7ab8
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
weishu
830c27361e
kernel: unify workqueue
2023-01-18 18:37:27 +07:00
weishu
2a1e91cb34
kernel: don't use 0(root uid) as manager init uid
2023-01-17 13:49:30 +07:00
weishu
ab36e1fa0c
kernel: add uid observer, correctly prune uid allowlist when app is installed/uninstalled.
2023-01-17 12:44:38 +07:00
Ylarod
a30aab1da6
[skip ci] minor fixup ( #72 )
...
1. update README_CN.md
2. indent fixup
2023-01-15 17:05:08 +08:00
Ylarod
5e77d1cd5b
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
b427c86ab3
misc: code format(use kernel code stype: https://www.kernel.org/doc/html/v6.1/process/coding-style.html
2022-12-27 18:21:10 +07:00
weishu
fa59434753
kernel: add selinux rules for allowlist
2022-12-23 08:15:35 +07:00
weishu
9aacf2a64d
kernel: avoding other root process being kprobed
2022-12-21 20:50:55 +07:00
weishu
758c8eb845
kernel: fix compile errors & warnings on android13-5.15 gki
2022-12-20 10:51:40 +07:00
Nullptr
85d4cbd92d
Fix su file not found after su ( #5 )
2022-12-19 19:37:26 +08:00
weishu
91f3b3ef1c
kernel: load_allow_list when /data prepared
2022-12-15 16:06:07 +07:00
weishu
e9ed28077f
kernel: add su compat mode
2022-12-14 14:55:29 +07:00
weishu
280660125f
kernel: don't setenforce if kernel is already permissive
2022-12-12 22:19:17 +07:00
weishu
304581cab4
kernel: fix selinux when load/save allowlist
2022-12-12 13:50:47 +07:00
weishu
820d84e512
kernel: make allowlist available cross boot
2022-12-12 11:17:51 +07:00
weishu
730a522f87
kernel: fmt
2022-12-11 22:00:44 +07:00
tiann
51c84400cf
Init
2022-12-09 22:04:40 +08:00