Commit Graph

23 Commits

Author SHA1 Message Date
weishu fc96172655 kernel: make the profile uid, gid, capabilities really work 2023-06-04 17:29:12 +08:00
weishu 115e412cdc kernel: add more capailities 2023-06-04 16:09:27 +08:00
weishu 3a9e29f1ee kernel: Add version field for struct app_profile 2023-06-03 23:57:05 +08:00
weishu 14b1386879 kernel: support CMD_IS_UID_GRANTED_ROOT and CMD_IS_UID_SHOULD_UMOUNT 2023-06-03 22:44:01 +08:00
weishu f8b18c06c8 kernel: minor fixes for profiles 2023-06-03 10:18:11 +08:00
weishu e8d234ae66 kernel: baby version of profile 2023-06-03 00:01:00 +08:00
weishu 20fcc971e1 kernel: press KEY_VOLUMEDOWN over 2 seconds will enter safemode and disable all modules
Co-authored-by: Ylarod <me@ylarod.cn>
2023-02-13 21:23:28 +07:00
weishu 91db0b3248 kernel: allow use without git submodule 2023-02-06 15:30:58 +07:00
weishu 1b2a6fb6bc kernel: unify version 2023-02-03 23:01:02 +07:00
weishu 895fc30fdf kernel: version 15 2023-02-02 09:05:37 +07:00
weishu fc3b6871dd kernel: version 14 2023-01-31 20:55:25 +07:00
weishu df8aec5b55 kernel: bump version 13 2023-01-31 19:21:21 +07:00
weishu 3603778a8c kernel: support sepolicy 2023-01-31 18:54:31 +07:00
weishu a2e57cbbf6 kernel: version 12 2023-01-26 16:16:00 +07:00
Ylarod 443c5867cd 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 b07b38c974 kernel: bump version to 11 2023-01-25 21:55:47 +08:00
Ylarod 3d07b7285b 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
Ylarod ecfe4e9ebd kernel: allow to change manager in debug mode (#111) 2023-01-25 14:50:44 +08:00
weishu 7edf478901 kernel: bump version to 10 2023-01-24 19:49:08 +07:00
weishu c345438b7a kernel: use rename lsm hook 2023-01-19 16:34:21 +07:00
weishu 0b14cac87e kernel: 1. use prctl lsm hook; 2. refine sucompat hook 2023-01-19 13:31:55 +07:00
weishu a9dd171f0d kernel: unify workqueue 2023-01-18 18:37:27 +07:00
weishu aa6ab8fcb9 kernel: don't use 0(root uid) as manager init uid 2023-01-17 13:49:30 +07:00