Commit Graph

68 Commits

Author SHA1 Message Date
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
Ylarod
9cf907ee46 [skip ci] kernel: allow override EXPECTED_* by env (#67)
The original one can only override by `make EXPECTED_SIZE=123 EXPECTED_HASH=123`
2023-01-15 08:29:29 +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
Ylarod
b9f8e01d62 kernel: export customized symbols (#58) 2023-01-14 10:43:16 +08:00
Ylarod
2815801ecd kernel: add prefix for functions in sepolicy (#49)
* kernel: add prefix for functions in sepolicy

* ci: fix 5.15 compile error
2023-01-13 20:05:52 +08:00
セリカ・シルフィル
bf5bfd3836 Make setup script support non-GKI kernel (#47) 2023-01-12 17:09:55 +08:00
セリカ・シルフィル
395090ae3e Fix error for some non-GKI kernel source code (#45)
Idea from @Dreamail
2023-01-12 15:11:51 +08:00
Ylarod
5de4ebfb71 kernel: fix warning (#37) 2023-01-11 05:22:58 +08:00
weishu
0caaf53c52 kernel: backport to 4.19 (#36) 2023-01-10 23:20:32 +08:00
Ylarod
9d19d9b9f0 kernel: improve include (#35) 2023-01-10 19:44:43 +08:00
weishu
cb78faaf22 kernel: fix typo for PT_PARAM_REG 2023-01-09 07:24:23 +07: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
YuKongA
07176fdecb kernel: CI build for 5.15.y (#30) 2023-01-07 16:39:19 +08:00
weishu
ece756faed kernel: add PT_REGS_PARAM6 2023-01-06 21:51:09 +07:00
Huy Minh
4d099b9273 Kconfig : Make KSU depends on OVERLAY_FS (#25)
As KernelSU now support modules and mounting system as R/W using overlayfs, it's time to require overlayfs when trying to compile it.
2023-01-05 17:48:22 +08:00
weishu
0e847f1a81 kernel: change vold.rc to atrace.rc temporarily 2023-01-04 21:42:50 +07:00
weishu
a45fd72e5b kernel: version -> 8 2023-01-04 13:43:53 +07:00
weishu
a66328ddaa kernel: Add boot_completed init event 2023-01-04 13:43:37 +07:00
weishu
681a50363b kernel: version -> 7 2023-01-03 09:21:46 +07:00
weishu
d2888f714c kernel: use exec instead of init service 2023-01-03 09:21:21 +07:00
weishu
c4ad1545f8 kernel: make injected init service name random 2023-01-02 22:19:01 +07:00
weishu
a9192b7d63 kernel: unregister vfs_read hook to avoid read performance 2023-01-02 21:43:02 +07:00
weishu
808f4b8875 kernel: inject userspace init events 2023-01-01 23:54:54 +07:00
weishu
92de8fbccb kernel: become_manager return true iff it is manager 2022-12-29 16:15:45 +07:00
weishu
95656d61ad 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
d9a2356edc kernel: support xperms for sepolicy 2022-12-27 17:43:58 +07:00
weishu
f610e321d2 kernel: fix sepolicy db size incorrect 2022-12-27 15:55:54 +07:00
weishu
8f25280eef kernel: fix wrong args 2022-12-26 15:08:17 +07:00
Ylarod
ba1ae8d7ff 🚨 [kernel] remove warnings (#20) 2022-12-24 09:18:38 +08:00
tiann
ea9f71e262 kernel: fix path leak 2022-12-23 12:35:25 +07:00
weishu
64931d4ad1 kernel: improve manager validation 2022-12-23 11:47:27 +07:00
weishu
2bdd7c3868 kernel: fix compile err 2022-12-23 10:46:19 +07:00
weishu
6901464d3b kernel: version -> 5 2022-12-23 09:00:50 +07:00
weishu
e44b1c2a95 kernel: don't apply rules for permissive/disabled selinux 2022-12-23 08:59:57 +07:00
weishu
5f1d813635 kernel: add selinux rules for allowlist 2022-12-23 08:15:35 +07:00
weishu
dacf57f489 kernel: fix seccomp, this is actually a fix of previous commit 2022-12-22 22:20:12 +07:00
weishu
c17aed0d02 kernel: improve selinux for su context 2022-12-22 22:10:17 +07:00
weishu
24c2ddc206 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
b83d367388 💚 kernel: fix ci build (#16) 2022-12-22 09:53:45 +08:00
weishu
99ebc30c8f kernel: manager's parent must be zygote(uid=0) 2022-12-21 21:05:16 +07:00
weishu
fa4362ddd6 kernel: avoding other root process being kprobed 2022-12-21 20:50:55 +07:00
weishu
0563f6fa27 kernel: version -> 4 2022-12-21 19:19:07 +07:00
Huy Minh
7d5297c133 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
SsageParuders
db153671c8 kernel: add ccflags (#11)
make `Mixing declarations and code is a C99 extension`  disappear
2022-12-20 14:04:14 +08:00
weishu
5ccaa58448 kernel: fix compile errors & warnings on android13-5.15 gki 2022-12-20 10:51:40 +07:00
SsageParuders
f15575cd57 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