Commit Graph

2612 Commits

Author SHA1 Message Date
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
26de38ce57 👷 [CI] build for android12-5.10-66 (#18) 2022-12-22 15:41:56 +08:00
Ylarod
b83d367388 💚 kernel: fix ci build (#16) 2022-12-22 09:53:45 +08:00
Ylarod
0197f507de 👷 [CI] Use checkout instead of mainline setup.sh (#17) 2022-12-22 09:53:08 +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
Ylarod
23208f5916 👷 [CI] trigger ci if build-*.yml changes (#14) 2022-12-21 20:20:59 +08:00
weishu
0563f6fa27 kernel: version -> 4 2022-12-21 19:19:07 +07:00
Ylarod
fc4351221c 👷 [CI] Update build-kernel.yml (#13) 2022-12-21 20:13:16 +08:00
Nullptr
1031d9ab1e misc: create build-kernel.yml (#9)
* misc: create build-kernel.yml

* misc: pack boot.img
2022-12-21 17:39:21 +08:00
tiann
9823d57ecd misc: don't trigger ci on irrelative path 2022-12-20 17:14:07 +08: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
Huy Minh
fbfed68034 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
Nullptr
7194c7b3df Fix su file not found after su (#5) 2022-12-19 19:37:26 +08:00
Huy Minh
b1cad53f36 Kconfig : Make KSU depends on KPROBES (#4) 2022-12-19 18:19:58 +08:00
weishu
d69f760960 kernel: always disable seccomp 2022-12-19 17:14:38 +07:00
weishu
09f0b78c84 kernel: emit compile error when KPROBES disabled 2022-12-19 12:12:57 +07:00
tiann
ae63e474e7 manager: fix crash when app granted root is uninstalled. 2022-12-19 12:57:47 +08:00
tiann
e3c5276aa0 manager: only build x86_64 and arm64 libs 2022-12-16 11:06:34 +08:00
Ylarod
3bc4e79596 docs: change url of build instruction (#3) 2022-12-15 22:21:05 +08:00
weishu
bb91686c3c kernel: load_allow_list when /data prepared 2022-12-15 16:06:07 +07:00
tiann
b17c333c02 manager: lazy load app name and icon 2022-12-15 15:15:30 +08:00
tiann
e7baddbc17 misc: fix ci 2022-12-15 14:25:46 +08:00
tiann
84817d6a7c manager: rename build artifacts 2022-12-15 12:48:33 +08:00
Ylarod
fcafc23a01 Add ci for manager and userspace (#2)
* kernel: move EXPECTED_* macro to Makefile

* manager: add sign configs

* tools: add check_v2

* CI: build manager

* CI: build userspace
2022-12-15 12:22:43 +08:00
tiann
ec8b38a17d v0.1.3 2022-12-14 22:35:53 +08:00
weishu
2ae0af7be6 kernel: fix free kmem err 2022-12-14 16:41:47 +07:00
weishu
ccf0675f8a kernel: fix memory leaks and x86_64 args 2022-12-14 16:26:53 +07:00
tiann
30a0f45016 manager: add all apps in superuser list 2022-12-14 16:31:54 +08:00
weishu
44af9c5d2b kernel: add su compat mode 2022-12-14 14:55:29 +07:00
weishu
84ebb6800a kernel: don't setenforce if kernel is already permissive 2022-12-12 22:19:17 +07:00
tiann
28f2217765 userspace: add x86_64 build 2022-12-12 14:52:39 +08:00
weishu
facd3d90f2 kernel: support x86_64 2022-12-12 13:51:09 +07:00
weishu
5fd16bd7cf kernel: fix selinux when load/save allowlist 2022-12-12 13:50:47 +07:00
weishu
b1a33f869b kernel: make allowlist available cross boot 2022-12-12 11:17:51 +07:00
weishu
c7af4720fc kernel: fmt 2022-12-11 22:00:44 +07:00
tiann
2a16282220 manager: fix package visibility 2022-12-11 20:56:52 +08:00
tiann
91d6d28510 userspace: don't use static lib 2022-12-11 20:02:30 +08:00
tiann
9924aad004 v0.1.2 2022-12-11 00:46:24 +08:00
tiann
513c528acb manager: fix SuperUser list key conflicts 2022-12-11 00:08:35 +08:00