review bootdevice_sysdev
Bug: 196916111 Test: boot with bootdevice_sysdev labeled Change-Id: I938fe18718356bf4156bb55937528a1ca3e072fb
This commit is contained in:
parent
91d989bca4
commit
a90c8fe1b5
7 changed files with 4 additions and 8 deletions
1
whitechapel_pro/bootdevice_sysdev.te
Normal file
1
whitechapel_pro/bootdevice_sysdev.te
Normal file
|
@ -0,0 +1 @@
|
|||
allow bootdevice_sysdev sysfs:filesystem associate;
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
allow vendor_init bootdevice_sysdev:file create_file_perms;
|
||||
|
||||
set_prop(vendor_init, vendor_cbd_prop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue