review bootdevice_sysdev

Bug: 196916111
Test: boot with bootdevice_sysdev labeled
Change-Id: I938fe18718356bf4156bb55937528a1ca3e072fb
This commit is contained in:
Adam Shih 2021-09-02 13:24:46 +08:00
parent 91d989bca4
commit a90c8fe1b5
7 changed files with 4 additions and 8 deletions

View file

@ -0,0 +1 @@
allow bootdevice_sysdev sysfs:filesystem associate;

View file

@ -13,6 +13,7 @@ type vendor_fw_file, vendor_file_type, file_type;
# sysfs
type sysfs_chosen, sysfs_type, fs_type;
type sysfs_ota, sysfs_type, fs_type;
type bootdevice_sysdev, dev_type;
# vendor extra images
type modem_img_file, contextmount_type, file_type, vendor_file_type;

View file

@ -19,6 +19,7 @@
/dev/umts_rfs0 u:object_r:radio_device:s0
/dev/umts_dm0 u:object_r:radio_device:s0
/dev/umts_router u:object_r:radio_device:s0
/dev/sys/block/bootdevice(/.*)? u:object_r:bootdevice_sysdev:s0
/dev/socket/chre u:object_r:chre_socket:s0
/dev/block/sda u:object_r:sda_block_device:s0
/dev/block/platform/14700000\.ufs/by-name/abl_[ab] u:object_r:custom_ab_block_device:s0

View file

@ -1 +1,3 @@
allow vendor_init bootdevice_sysdev:file create_file_perms;
set_prop(vendor_init, vendor_cbd_prop)