summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalvin Huang <calhuang@google.com>2020-06-16 22:54:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-16 22:54:17 +0000
commit5b57a02adc1ff9d49bd06ec58153e492795a1178 (patch)
treeb5b5a81ae9272822db20579be5bd58f520a3e140
parent94a131146317d94c2da8258d5016b78f4458ab5c (diff)
parent15d270acab395c7c5b489863eb4562b067fc2b51 (diff)
downloaddevice_generic_car-5b57a02adc1ff9d49bd06ec58153e492795a1178.tar.gz
device_generic_car-5b57a02adc1ff9d49bd06ec58153e492795a1178.tar.bz2
device_generic_car-5b57a02adc1ff9d49bd06ec58153e492795a1178.zip
Add dumpstate sepolicy for emu to pass CTS am: 15d270acab
Original change: https://googleplex-android-review.googlesource.com/c/device/generic/car/+/11886039 Change-Id: Ia7884f12cca53d9e60906a11e03285d9d9c05b14
-rw-r--r--common/sepolicy/dumpstate.te17
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)