Commit Graph

78 Commits

Author SHA1 Message Date
tiann
a3874dd089 kernel: use ksud as root shell instead of /system/bin/sh 2023-04-03 20:29:10 +08:00
小さい猫
199f5cc223 fix some typos introduced in #166 (#181)
Signed-off-by: Ookiineko <chiisaineko@protonmail.com>
Co-authored-by: f19 <58457605+F-19-F@users.noreply.github.com>
Co-authored-by: Scirese <nuclearlight91@gmail.com>
2023-02-02 23:38:04 +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
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
SlightlyLookAround
fe11fcd6c6 kernel: Migrate the reference of task_stack() (#102)
- task_stack() had been separated when it was in Linux 4.11, so let's do
  our migration when KernelSU facing the old version of kernel.
- See f3ac606719

Signed-off-by: Calling <KeternalGithub@163.com>

Signed-off-by: Calling <KeternalGithub@163.com>
2023-01-22 11:32:28 +08:00
weishu
deac6163d6 kernel: 1. use prctl lsm hook; 2. refine sucompat hook 2023-01-19 13:31:55 +07:00
Ylarod
fb73a7f83e kernel: fix typo 2023-01-16 12:42:40 +08:00
weishu
00b1d7538d kernel: support ksud services 2023-01-16 11:19:59 +07:00
weishu
886c7d97a6 kernel: fix stack frame size exceeds 2023-01-16 10:21:10 +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
chen2021-web
2359b16526 backport to 4.14 (#59) 2023-01-15 15:34:15 +08:00
weishu
0e0a812a9c kernel: backport to 4.19 (#36) 2023-01-10 23:20:32 +08:00
weishu
35d6e27cd5 kernel: change vold.rc to atrace.rc temporarily 2023-01-04 21:42:50 +07:00
weishu
91ec16310c kernel: Add boot_completed init event 2023-01-04 13:43:37 +07:00
weishu
b3f7d1f070 kernel: use exec instead of init service 2023-01-03 09:21:21 +07:00
weishu
5229b8158e kernel: make injected init service name random 2023-01-02 22:19:01 +07:00
weishu
2e8645b50e kernel: unregister vfs_read hook to avoid read performance 2023-01-02 21:43:02 +07:00
weishu
ae18ab2b5e kernel: inject userspace init events 2023-01-01 23:54:54 +07: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
3196731545 kernel: improve selinux for su context 2022-12-22 22:10:17 +07:00
weishu
758c8eb845 kernel: fix compile errors & warnings on android13-5.15 gki 2022-12-20 10:51:40 +07:00
Huy Minh
96139986b3 kernel: Include task_stack.h in sucompat.c (#6)
Fixed the following error when compiling

ld.lld: error: undefined symbol: task_stack_page
>>> referenced by ld-temp.o
>>>               vmlinux.o:(sh_user_path)
2022-12-19 20:38:20 +08:00
weishu
223f5588df kernel: always disable seccomp 2022-12-19 17:14:38 +07:00
weishu
91f3b3ef1c kernel: load_allow_list when /data prepared 2022-12-15 16:06:07 +07:00
weishu
fc497546cc kernel: fix free kmem err 2022-12-14 16:41:47 +07:00
weishu
c6300ccf94 kernel: fix memory leaks and x86_64 args 2022-12-14 16:26:53 +07:00
weishu
e9ed28077f kernel: add su compat mode 2022-12-14 14:55:29 +07:00