Skip to content
Snippets Groups Projects
Commit 7a0b8efe authored by Tao Bao's avatar Tao Bao Committed by android-build-merger
Browse files

Merge "Allow update_verifier to access bootctrl_block_device."

am: e8b176ed

* commit 'e8b176ed':
  Allow update_verifier to access bootctrl_block_device.
parents 637af04e e8b176ed
No related branches found
No related tags found
No related merge requests found
...@@ -98,3 +98,6 @@ type metadata_block_device, dev_type; ...@@ -98,3 +98,6 @@ type metadata_block_device, dev_type;
# The 'misc' partition used by recovery and A/B. # The 'misc' partition used by recovery and A/B.
type misc_block_device, dev_type; type misc_block_device, dev_type;
# Bootctrl block device used by A/B update (update_engine, update_verifier).
type bootctrl_block_device, dev_type;
...@@ -189,6 +189,7 @@ ...@@ -189,6 +189,7 @@
/system/bin/inputflinger u:object_r:inputflinger_exec:s0 /system/bin/inputflinger u:object_r:inputflinger_exec:s0
/system/bin/logd u:object_r:logd_exec:s0 /system/bin/logd u:object_r:logd_exec:s0
/system/bin/uncrypt u:object_r:uncrypt_exec:s0 /system/bin/uncrypt u:object_r:uncrypt_exec:s0
/system/bin/update_verifier u:object_r:update_verifier_exec:s0
/system/bin/logwrapper u:object_r:system_file:s0 /system/bin/logwrapper u:object_r:system_file:s0
/system/bin/vdc u:object_r:vdc_exec:s0 /system/bin/vdc u:object_r:vdc_exec:s0
/system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0 /system/bin/install-recovery.sh u:object_r:install_recovery_exec:s0
......
# update_verifier
type update_verifier, domain;
type update_verifier_exec, exec_type, file_type;
init_daemon_domain(update_verifier)
# Raw writes to bootctrl block device
allow update_verifier bootctrl_block_device:blk_file rw_file_perms;
# TODO: Add rules to allow update_verifier to read system_block_device.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment