summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPavel Maltsev <pavelm@google.com>2018-04-10 14:17:55 -0700
committerPavel Maltsev <pavelm@google.com>2018-04-27 13:02:46 -0700
commit462e1f1b5fe5c356c0b63aebc7dae4b8d102f72a (patch)
treecb18534d90aecbea89631435d157848b3471a1e8 /common
parent1ba86121cb80deb5917493d86bd7e988989c948b (diff)
downloadcar-462e1f1b5fe5c356c0b63aebc7dae4b8d102f72a.tar.gz
Split automotive HALs sepolicies
Spliting automotive policies between private/public/vendor similar to policies defined in system/sepolicy Bug: 70637118 Test: build, flash and boot bat_land, owl and emulator automotive builds Change-Id: I1dc56b073328a6ee185c59c6754eccda179ff4af
Diffstat (limited to 'common')
-rw-r--r--common/car.mk1
-rw-r--r--common/sepolicy/file_contexts2
-rw-r--r--common/sepolicy/hal_audiocontrol_hwservice.te1
-rw-r--r--common/sepolicy/hal_vehicle_hwservice.te1
-rw-r--r--common/sepolicy/hwservice.te2
-rw-r--r--common/sepolicy/hwservice_contexts2
-rw-r--r--common/sepolicy/system_app.te1
7 files changed, 1 insertions, 9 deletions
diff --git a/common/car.mk b/common/car.mk
index fb00657..72df605 100644
--- a/common/car.mk
+++ b/common/car.mk
@@ -54,6 +54,5 @@ TARGET_USES_CAR_FUTURE_FEATURES := true
# Add car related sepolicy.
BOARD_SEPOLICY_DIRS += \
device/generic/car/common/sepolicy \
- packages/services/Car/car_product/sepolicy
$(call inherit-product, packages/services/Car/car_product/build/car.mk)
diff --git a/common/sepolicy/file_contexts b/common/sepolicy/file_contexts
deleted file mode 100644
index ac02aab..0000000
--- a/common/sepolicy/file_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-/(vendor|system/vendor)/bin/hw/android.hardware.automotive.audiocontrol@1.0-service u:object_r:hal_audiocontrol_default_exec:s0
-/(vendor|system/vendor)/bin/hw/android.hardware.automotive.vehicle@2.0-service u:object_r:hal_vehicle_default_exec:s0
diff --git a/common/sepolicy/hal_audiocontrol_hwservice.te b/common/sepolicy/hal_audiocontrol_hwservice.te
deleted file mode 100644
index b8082a4..0000000
--- a/common/sepolicy/hal_audiocontrol_hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-add_hwservice(hal_audiocontrol_default, hal_audiocontrol_hwservice)
diff --git a/common/sepolicy/hal_vehicle_hwservice.te b/common/sepolicy/hal_vehicle_hwservice.te
deleted file mode 100644
index 836d21f..0000000
--- a/common/sepolicy/hal_vehicle_hwservice.te
+++ /dev/null
@@ -1 +0,0 @@
-add_hwservice(hal_vehicle_default, hal_vehicle_hwservice) \ No newline at end of file
diff --git a/common/sepolicy/hwservice.te b/common/sepolicy/hwservice.te
deleted file mode 100644
index fb8b372..0000000
--- a/common/sepolicy/hwservice.te
+++ /dev/null
@@ -1,2 +0,0 @@
-type hal_audiocontrol_hwservice, hwservice_manager_type;
-type hal_vehicle_hwservice, hwservice_manager_type;
diff --git a/common/sepolicy/hwservice_contexts b/common/sepolicy/hwservice_contexts
deleted file mode 100644
index d46c4c3..0000000
--- a/common/sepolicy/hwservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-android.hardware.automotive.audiocontrol::IAudioControl u:object_r:hal_audiocontrol_hwservice:s0
-android.hardware.automotive.vehicle::IVehicle u:object_r:hal_vehicle_hwservice:s0
diff --git a/common/sepolicy/system_app.te b/common/sepolicy/system_app.te
index 102f77f..9bc5ba3 100644
--- a/common/sepolicy/system_app.te
+++ b/common/sepolicy/system_app.te
@@ -1,2 +1,3 @@
allow system_app hal_audiocontrol_hwservice:hwservice_manager find;
allow system_app hal_vehicle_hwservice:hwservice_manager find;
+