weishu
2efefcea72
kernel: use library import
2024-04-27 09:55:24 +08:00
Coconut
4584aa7f4e
kernel:Add Huawei hisi check ( #1545 )
...
Use huawei_hisi_check.h to determine whether it is an old Huawei
HiSilicon device.
Solve:
1. Compatible with non-GKI Huawei HiSilicon devices
2. Solve different bugs in EMUI of different system versions
3. Does not affect other devices
2024-03-28 14:20:00 +08:00
weishu
585ea48904
kernel: Fix sepolicy on ColorOS14
2024-03-20 17:43:37 +08:00
Coconut
d5db694168
kernel:Compatible with devices based on Huawei EMUI10 ( #1447 )
...
EMUI 10 kernel version is 4.14.xxx.
The SELinux of Huawei's modified EMUI10 kernel is still similar to the
EMUI 9 version. This commit not support HarmonyOS 2 based EMUI 10.
2024-03-14 15:18:59 +08:00
longhuan1999
b14ea03dc4
kernel: Adapt to low version Android init process ( #973 )
...
1. Adapt to low version Android init process
2. Add stop hook output
3. Fix output with missing line breaks
2023-10-02 12:00:24 +08:00
weishu
756968b163
kernel: authorize the newly type for all roles. refer: http://aospxref.com/kernel-android12-5.10-lts/xref/security/selinux/ss/policydb.c#950
2023-07-01 20:54:13 +08:00
weishu
a3fdcdd901
kernel: remove no-macro-redefined
2023-05-22 10:50:04 +08:00
Abdelhay-Ali
ad395c2260
make huawei hi6250 4.9.319 kernel compile ( #431 )
2023-04-27 13:30:04 +08:00
Coconut
524b83cfcd
Make Huawei 4.9 Kernel compiler Happy and Does not affect other kernels ( #374 )
...
Adapt to SELinux with Huawei 4.9.xxx kernel without affecting other
mainstream kernels
2023-04-13 17:08:05 +08:00
weishu
561ee1a5b3
kernel: add_type for 5.4 is supported actually.
2023-03-03 11:17:17 +07:00
weishu
611c8a4138
kernel: support add_type for 4.x kernel
...
Co-authored-by: Ookiineko <chiisaineko@protonmail.com >
2023-02-14 19:08:18 +07:00
weishu
c2ccc78c28
kernel: correctly handle add attr
2023-02-14 18:52:48 +07:00
weishu
dc8d7704c6
kernel: fix policydb length
2023-02-14 14:41:00 +07:00
weishu
5995445e61
kernel: support selinux state transition
2023-01-26 16:05:14 +07:00
weishu
a548fa1771
kernel: add sepolicy calls
2023-01-26 16:05:14 +07:00
Ylarod
9fe636cd47
kernel: fix missing log tag ( #117 )
2023-01-25 22:24:00 +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
weishu
a387fc601a
kernel: selinux support add new type and add builtin unconstrained file type
2023-01-24 19:48:41 +07: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
weishu
0caaf53c52
kernel: backport to 4.19 ( #36 )
2023-01-10 23:20:32 +08:00
YuKongA
07176fdecb
kernel: CI build for 5.15.y ( #30 )
2023-01-07 16:39:19 +08: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
c17aed0d02
kernel: improve selinux for su context
2022-12-22 22:10:17 +07:00