Commit Graph

41 Commits

Author SHA1 Message Date
weishu
da377a9fa9 kernel: fix unused-variable 2023-01-19 13:54:42 +07:00
weishu
deac6163d6 kernel: 1. use prctl lsm hook; 2. refine sucompat hook 2023-01-19 13:31:55 +07:00
weishu
830c27361e kernel: unify workqueue 2023-01-18 18:37:27 +07:00
Ylarod
5b2efd65b1 kernel: add null check (#84) 2023-01-18 17:05:40 +08:00
Ylarod
2724c6211a kernel: put original group_info (#82) 2023-01-18 07:59:26 +08:00
Ylarod
3d5effb678 kernel: fix panic in #79 (#80) 2023-01-17 21:51:19 +08: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
weishu
bf3edfd0ef kernel: fix init_groups not exist int 5.15 2023-01-16 16:33:51 +07:00
weishu
ece66a3c38 kernel: setgroup to root for su 2023-01-16 15:43:14 +07:00
weishu
2222a999b9 kernel: version 9 2023-01-16 11:20:27 +07:00
Scirese
4f99d865cb kernel: make kernel correctly response CMD_GRANT_ROOT (#73) 2023-01-15 20:11:21 +08: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
Scirese
0b86cd69fc [skip ci] kernel: allow root processes to get version (#63) 2023-01-14 21:52:57 +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
0e0a812a9c kernel: backport to 4.19 (#36) 2023-01-10 23:20:32 +08:00
weishu
43bea50605 kernel: fix syscall_work version 2023-01-07 20:11:33 +07:00
weishu
94d0d5ac6b kernel: syscall_work is introduced above 5.10 2023-01-07 20:07:16 +07:00
weishu
d7cfa6b669 kernel: version -> 8 2023-01-04 13:43:53 +07:00
weishu
d3d6601006 kernel: version -> 7 2023-01-03 09:21:46 +07:00
weishu
00b4025325 kernel: become_manager return true iff it is manager 2022-12-29 16:15:45 +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
0661dda164 kernel: fix wrong args 2022-12-26 15:08:17 +07:00
tiann
82161dec80 kernel: fix path leak 2022-12-23 12:35:25 +07:00
weishu
7b60a1e5f8 kernel: improve manager validation 2022-12-23 11:47:27 +07:00
weishu
2a891a478c kernel: version -> 5 2022-12-23 09:00:50 +07:00
weishu
dcb1d38a37 kernel: fix seccomp, this is actually a fix of previous commit 2022-12-22 22:20:12 +07:00
weishu
301406d051 kernel: fix seccomp. it may crash in https://elixir.bootlin.com/linux/v5.10.161/source/kernel/seccomp.c#L1079 2022-12-22 22:04:18 +07:00
Ylarod
e6d40afe76 💚 kernel: fix ci build (#16) 2022-12-22 09:53:45 +08:00
weishu
47b0f7bdeb kernel: manager's parent must be zygote(uid=0) 2022-12-21 21:05:16 +07:00
weishu
78fc250778 kernel: version -> 4 2022-12-21 19:19:07 +07:00
Huy Minh
5053e20778 kernel: switch to syscall_work if CONFIG_GENERIC_ENTRY is enabled (#12)
From Kernel 5.11 it migrate to syscall_work instead of tif_*, so check for CONFIG_GENERIC_ENTRY and use syscall_work instead of TIF_SECCOMP

https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2382193.html
2022-12-20 14:54:42 +08:00
weishu
758c8eb845 kernel: fix compile errors & warnings on android13-5.15 gki 2022-12-20 10:51:40 +07:00
SsageParuders
c5da14ae4b need to import namespace (#7)
use some symbols, such as filp_open , from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it
2022-12-20 10:21:57 +08:00
Nullptr
85d4cbd92d Fix su file not found after su (#5) 2022-12-19 19:37:26 +08:00
weishu
223f5588df kernel: always disable seccomp 2022-12-19 17:14:38 +07:00
weishu
be91d4edaf kernel: emit compile error when KPROBES disabled 2022-12-19 12:12:57 +07:00
weishu
e9ed28077f kernel: add su compat mode 2022-12-14 14:55:29 +07:00
weishu
0d8785ec78 kernel: support x86_64 2022-12-12 13:51:09 +07:00
tiann
51c84400cf Init 2022-12-09 22:04:40 +08:00