universal7570: import sepolicy from 7870

The sepolicy before seems to be broken

Change-Id: I890a28429f03e47a183a0a0b755987f3495994c3
This commit is contained in:
Hendra Manudinata 2021-03-13 05:07:20 +07:00
parent f22a0e7cdd
commit f0e4521a9f
No known key found for this signature in database
GPG key ID: 8DB7A83A9B4EE2D6
53 changed files with 1095 additions and 58 deletions

14
sepolicy/ueventd.te Normal file
View file

@ -0,0 +1,14 @@
# /dev/block/mmcblk0p[0-9]
allow ueventd emmcblk_device:blk_file { relabelfrom relabelto create setattr unlink rw_file_perms };
# /sys/devices/virtual/misc/multipdp/uevent
allow ueventd sysfs_multipdp:file rw_file_perms;
# read/chown camera firmware
allow ueventd sysfs_camera:file { relabelto rw_file_perms };
allow ueventd sysfs_camera:filesystem associate;
allow ueventd sysfs_usb_supply:file w_file_perms;
# Allow access to /proc/device-tree nodes
r_dir_file(ueventd, proc_dt_firmware)