Skip to content
Snippets Groups Projects
Commit 1e17dafc authored by Tao Bao's avatar Tao Bao Committed by Jeffrey Vander Stoep
Browse files

update_verifier: Allow searching /dev/block.

update_verifier calls bootcontrol HAL to mark the currently booting slot
as successfully booted.

avc: denied { search } for name="block" dev="tmpfs" scontext=u:r:update_verifier:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0
avc: denied { search } for name="block" dev="tmpfs" scontext=u:r:update_verifier:s0 tcontext=u:object_r:block_device:s0 tclass=dir permissive=0

Bug: 29569601
Test: Device boots up with no update_verifier denials and 'bootctl is-slot-marked-successful 0' returns 0.
Change-Id: I1baa7819bc829e3c4b83d7168008a5b06b01cc9f
parent 2c1b02eb
No related branches found
No related tags found
No related merge requests found
...@@ -5,4 +5,7 @@ type update_verifier_exec, exec_type, file_type; ...@@ -5,4 +5,7 @@ type update_verifier_exec, exec_type, file_type;
init_daemon_domain(update_verifier) init_daemon_domain(update_verifier)
# Allow update_verifier to reach block devices in /dev/block.
allow update_verifier block_device:dir search;
# TODO: Add rules to allow update_verifier to read system_block_device. # 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