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
This commit is contained in:
parent
2c1b02eba6
commit
1e17dafc6d
1 changed files with 3 additions and 0 deletions
|
@ -5,4 +5,7 @@ type update_verifier_exec, exec_type, file_type;
|
|||
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue