diff options
author | Calvin Huang <calhuang@google.com> | 2020-06-16 14:35:38 -0700 |
---|---|---|
committer | Calvin Huang <calhuang@google.com> | 2020-06-16 22:01:32 +0000 |
commit | 15d270acab395c7c5b489863eb4562b067fc2b51 (patch) | |
tree | 010f70d6ba0cba6c4203e1e3a1ae9c84825425b9 | |
parent | d107b6dcc8a96d8ce8213ab120f72b695b3f5223 (diff) | |
download | device_generic_car-15d270acab395c7c5b489863eb4562b067fc2b51.tar.gz device_generic_car-15d270acab395c7c5b489863eb4562b067fc2b51.tar.bz2 device_generic_car-15d270acab395c7c5b489863eb4562b067fc2b51.zip |
Add dumpstate sepolicy for emu to pass CTS
Fix: 158524715
Test: Launch user build emulator
Test: atest android.security.cts.SELinuxHostTest
Change-Id: Ibfbdcdd133fbe38e49ec9086ea1fbef30e3ed654
-rw-r--r-- | common/sepolicy/dumpstate.te | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/common/sepolicy/dumpstate.te b/common/sepolicy/dumpstate.te new file mode 100644 index 0000000..ad16894 --- /dev/null +++ b/common/sepolicy/dumpstate.te @@ -0,0 +1,17 @@ +# Signal java processes to dump hal_vehicle_default, hal_audiocontrol_default +allow dumpstate { + hal_vehicle_default + hal_audiocontrol_default +}:process signal; + + +# Allow dumpstate to make binder calls to hal_identity, hal_light, hal_power +binder_call(dumpstate, hal_identity_default) +binder_call(dumpstate, hal_light_default) +binder_call(dumpstate, hal_power_default) + +dump_hal(hal_vehicle) +dump_hal(hal_audiocontrol) +dump_hal(hal_identity) +dump_hal(hal_light) +dump_hal(hal_power) |