mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 20:45:31 -04:00
universal7885: sepolicy: Completely merge samsung_slsi repo
This commit is contained in:
parent
00fb011c7c
commit
f6da6e72c2
82 changed files with 852 additions and 872 deletions
8
universal7885-common/sepolicy/public/attributes
Normal file
8
universal7885-common/sepolicy/public/attributes
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# Tag for read only filesystem type
|
||||
attribute r_fs_type;
|
||||
|
||||
# Tag for read/write filesystem type
|
||||
attribute rw_fs_type;
|
||||
|
||||
# Tag for read/execute filesystem type
|
||||
attribute rx_fs_type;
|
||||
4
universal7885-common/sepolicy/public/domain.te
Normal file
4
universal7885-common/sepolicy/public/domain.te
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# domain.te
|
||||
|
||||
# Make sure that labels are used correctly
|
||||
neverallow { domain -vendor_init -ueventd } r_fs_type:file write;
|
||||
12
universal7885-common/sepolicy/public/file.te
Normal file
12
universal7885-common/sepolicy/public/file.te
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# file.te
|
||||
|
||||
### DATA
|
||||
type zram_data_file, file_type, data_file_type, core_data_file_type;
|
||||
|
||||
## SYSFS
|
||||
type sysfs_gpu_tmu, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_flashlight, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_sec_switch, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_battery, sysfs_type, r_fs_type, fs_type;
|
||||
type sysfs_battery_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
type sysfs_sec_switch_writable, sysfs_type, rw_fs_type, fs_type;
|
||||
4
universal7885-common/sepolicy/public/genfs_contexts
Normal file
4
universal7885-common/sepolicy/public/genfs_contexts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
genfscon sysfs /devices/platform/11500000.mali/tmu u:object_r:sysfs_gpu_tmu:s0
|
||||
genfscon sysfs /devices/virtual/camera/flash/torch_brightness_lvl u:object_r:sysfs_flashlight:s0
|
||||
genfscon sysfs /devices/virtual/camera/flash/torch_brightness_lvl_enable u:object_r:sysfs_flashlight:s0
|
||||
|
||||
5
universal7885-common/sepolicy/public/init.te
Normal file
5
universal7885-common/sepolicy/public/init.te
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
allow init sysfs_gpu_tmu:file { setattr };
|
||||
allow init sysfs_flashlight:file { setattr };
|
||||
allow init selinuxfs:file { setattr };
|
||||
allow init sysfs_sec_switch_writable:file { setattr };
|
||||
allow init sysfs_battery_writable:file { setattr }; repo):universal7885-common/sepolicy/public/init.te
|
||||
2
universal7885-common/sepolicy/public/property.te
Normal file
2
universal7885-common/sepolicy/public/property.te
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
### RFKILL
|
||||
type rfkilldisabled_prop, property_type;
|
||||
9
universal7885-common/sepolicy/public/system_app.te
Normal file
9
universal7885-common/sepolicy/public/system_app.te
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
allow system_app sysfs_gpu_tmu:file { read open write getattr };
|
||||
allow system_app sysfs_flashlight:file { read open write getattr };
|
||||
allow system_app selinuxfs:file rw_file_perms;
|
||||
allow system_app sysfs_sec_switch:dir { search };
|
||||
allow system_app sysfs_sec_switch_writable:file rw_file_perms;
|
||||
allow system_app sysfs_battery_writeable:file rw_file_perms;
|
||||
allow system_app sysfs_sec_switch_writable:dir { search };
|
||||
allow system_app sysfs_battery_writeable:dir { search };
|
||||
allow system_app sysfs_battery:dir { search };
|
||||
8
universal7885-common/sepolicy/public/te_macros
Normal file
8
universal7885-common/sepolicy/public/te_macros
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# teegris_use(domain)
|
||||
#
|
||||
# Allow domain to use teegris
|
||||
define(`teegris_use', `
|
||||
get_prop($1, vendor_tztsdaemon_prop)
|
||||
# /dev/tzdev
|
||||
allow $1 tz_user_device:chr_file rw_file_perms;
|
||||
')
|
||||
Loading…
Reference in a new issue