gs-common: move sepolicy related to bootctrl hal hidl 1.2 to gs-common
Bug: 265063384 Change-Id: I1981edd60a77e4c5aede8649c7b6bc5eacb676ee Signed-off-by: Jason Chiu <jasoncschiu@google.com>
This commit is contained in:
parent
de91ea30a9
commit
f4d8fb7ad8
5 changed files with 12 additions and 0 deletions
|
@ -3,3 +3,4 @@ PRODUCT_PACKAGES += \
|
|||
android.hardware.boot@1.2-service-pixel
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/bootctrl/1.2
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/bootctrl/sepolicy/1.2
|
||||
|
|
5
bootctrl/sepolicy/1.2/device.te
Normal file
5
bootctrl/sepolicy/1.2/device.te
Normal file
|
@ -0,0 +1,5 @@
|
|||
# devinfo block device
|
||||
type devinfo_block_device, dev_type;
|
||||
|
||||
# OTA
|
||||
type sda_block_device, dev_type;
|
2
bootctrl/sepolicy/1.2/file.te
Normal file
2
bootctrl/sepolicy/1.2/file.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# sysfs
|
||||
type sysfs_ota, sysfs_type, fs_type;
|
1
bootctrl/sepolicy/1.2/file_contexts
Normal file
1
bootctrl/sepolicy/1.2/file_contexts
Normal file
|
@ -0,0 +1 @@
|
|||
/vendor/bin/hw/android\.hardware\.boot@1\.2-service-pixel u:object_r:hal_bootctl_default_exec:s0
|
3
bootctrl/sepolicy/1.2/hal_bootctl_default.te
Normal file
3
bootctrl/sepolicy/1.2/hal_bootctl_default.te
Normal file
|
@ -0,0 +1,3 @@
|
|||
allow hal_bootctl_default devinfo_block_device:blk_file rw_file_perms;
|
||||
allow hal_bootctl_default sda_block_device:blk_file rw_file_perms;
|
||||
allow hal_bootctl_default sysfs_ota:file rw_file_perms;
|
Loading…
Add table
Add a link
Reference in a new issue