Add fastbootd to the sys_rawio whitelist.

A similar problem was previously encountered with the boot control HAL
in bug 118011561. The HAL may need access to emmc to implement
set_active commands.

fastbootd uses the boot control HAL in passthru mode when in recovery,
so by extension, it needs this exception as well.

Bug: 140367894
Test: fastbootd can use sys_rawio
Change-Id: I1040e314a58eae8a516a2e999e9d4e2aa51786e7
(cherry picked from commit 74affd1403)
Bug: 144659183
This commit is contained in:
David Anderson 2019-10-25 15:11:58 -07:00 committed by Jeffrey Vander Stoep
parent 4561fcb76c
commit 03b5fb7f46

View file

@ -312,4 +312,5 @@ neverallow {
-uncrypt
-tee
-hal_bootctl_server
-fastbootd
} self:global_capability_class_set sys_rawio;