universal7870: import Pie sepolicies

This commit is contained in:
Astrako 2020-01-28 00:06:11 +01:00 committed by Alejandro
parent 734b50ffaa
commit 221b221b8a
41 changed files with 583 additions and 0 deletions

11
sepolicy/ueventd.te Normal file
View file

@ -0,0 +1,11 @@
# /dev/block/mmcblk0p[0-9]
#allow ueventd emmcblk_device:blk_file create_file_perms;
allow ueventd emmcblk_device:blk_file { relabelfrom relabelto create setattr unlink getattr };
# read/chown camera firmware
allow ueventd sysfs_camera_writable:file { relabelto getattr rw_file_perms };
allow ueventd sysfs_camera_writable:filesystem associate;
allow ueventd sysfs_sec:dir { open read relabelto search };
allow ueventd sysfs_sec:lnk_file relabelto;