Add sepolicy for sensors
Adding sepoilcy for sensors.
Test: Sensors work.
Change-Id: Ibbf0c1a22654a17b1573e3761ea9ccd816150255
diff --git a/private/file_contexts b/private/file_contexts
index 41e1459..6f8f741 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -241,6 +241,7 @@
/system/bin/hw/android\.hardware\.memtrack@1\.0-service u:object_r:hal_memtrack_default_exec:s0
/system/bin/hw/android\.hardware\.nfc@1\.0-service u:object_r:hal_nfc_default_exec:s0
/system/bin/hw/android\.hardware\.power@1\.0-service u:object_r:hal_power_default_exec:s0
+/system/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0
/system/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0
/system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
diff --git a/private/hal_sensors_default.te b/private/hal_sensors_default.te
new file mode 100644
index 0000000..5f29446
--- /dev/null
+++ b/private/hal_sensors_default.te
@@ -0,0 +1,4 @@
+type hal_sensors_default, hal_sensors, domain;
+type hal_sensors_default_exec, exec_type, file_type;
+
+init_daemon_domain(hal_sensors_default)