summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Wu <chasewu@google.com>2022-12-13 10:52:38 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-12-13 10:52:38 +0000
commitcbfaaeea3939c5ea1682416975b4c20769396999 (patch)
tree4dbe3768aac16d32f791f607f73135d69671e71c
parent7184709e5f04a839dd7b582ca4434f30a6632271 (diff)
parentc02424796dd2247a089b20f984eca3b52d7648a1 (diff)
downloadfelix-sepolicy-cbfaaeea3939c5ea1682416975b4c20769396999.tar.gz
Remove sepolicy for vibrator manager service am: c02424796d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/felix-sepolicy/+/20610806 Change-Id: I558a8250352ec221945eafaaa5f1054488d94ea5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--vendor/file_contexts1
-rw-r--r--vendor/hal_vibrator_default.te8
-rw-r--r--vendor/hal_vibrator_stereo_default.te21
-rw-r--r--vendor/vndservice.te1
-rw-r--r--vendor/vndservice_contexts2
5 files changed, 3 insertions, 30 deletions
diff --git a/vendor/file_contexts b/vendor/file_contexts
index 91d227e..edf1c97 100644
--- a/vendor/file_contexts
+++ b/vendor/file_contexts
@@ -14,5 +14,4 @@
# Haptics
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private u:object_r:hal_vibrator_default_exec:s0
-/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-stereo-private u:object_r:hal_vibrator_stereo_exec:s0
/dev/gpiochip44 u:object_r:vibrator_device:s0
diff --git a/vendor/hal_vibrator_default.te b/vendor/hal_vibrator_default.te
index 3b14315..7858155 100644
--- a/vendor/hal_vibrator_default.te
+++ b/vendor/hal_vibrator_default.te
@@ -1,5 +1,3 @@
-# Allow vibrator HAL to communicate with another service
-binder_call(hal_vibrator_default, hal_vibrator_stereo);
-
-# Allow vibrator HAL to "add" the hal_vibrator_vndservice service type
-add_service(hal_vibrator_default, hal_vibrator_vndservice);
+# For gpio dev node
+vndbinder_use(hal_vibrator_default);
+allow hal_vibrator_default vibrator_device:chr_file rw_file_perms;
diff --git a/vendor/hal_vibrator_stereo_default.te b/vendor/hal_vibrator_stereo_default.te
deleted file mode 100644
index 9cb2793..0000000
--- a/vendor/hal_vibrator_stereo_default.te
+++ /dev/null
@@ -1,21 +0,0 @@
-# From system sepilicy
-type hal_vibrator_stereo, domain;
-hal_server_domain(hal_vibrator_stereo, hal_vibrator)
-
-type hal_vibrator_stereo_exec, exec_type, vendor_file_type, file_type;
-init_daemon_domain(hal_vibrator_stereo)
-
-# From project
-get_prop(hal_vibrator_stereo, vendor_vibrator_prop);
-get_prop(hal_vibrator_stereo, boot_status_prop);
-
-# Allow vibrator HAL's default implementation to use vendor-binder service
-vndbinder_use(hal_vibrator_stereo);
-
-# For gpio dev node
-allow hal_vibrator_stereo vibrator_device:chr_file rw_file_perms;
-
-# For vibrator HAL's communication with other service
-binder_call(hal_vibrator_stereo, hal_vibrator_default);
-
-allow hal_vibrator_stereo hal_vibrator_vndservice:service_manager find;
diff --git a/vendor/vndservice.te b/vendor/vndservice.te
deleted file mode 100644
index 5df985b..0000000
--- a/vendor/vndservice.te
+++ /dev/null
@@ -1 +0,0 @@
-type hal_vibrator_vndservice, vndservice_manager_type;
diff --git a/vendor/vndservice_contexts b/vendor/vndservice_contexts
deleted file mode 100644
index 2b6b4aa..0000000
--- a/vendor/vndservice_contexts
+++ /dev/null
@@ -1,2 +0,0 @@
-android.hardware.vibrator.IVibratorSync/default u:object_r:hal_vibrator_vndservice:s0
-android.hardware.vibrator.IVibratorSync/dual u:object_r:hal_vibrator_vndservice:s0