summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Mortimer <sam@mortimer.me.uk>2017-10-05 20:54:33 -0700
committerSam Mortimer <sam@mortimer.me.uk>2017-10-11 09:26:56 -0700
commitdbf3187ee0c6e59fee74d3a8eb40f0625e28a3c2 (patch)
treee38754faf40e74846eb77b4e5d425816eecc32c5
parent8ddb8f7f80e6ac68a41e6b257aa54878816a02d2 (diff)
downloadandroid_device_lineage_sepolicy-dbf3187ee0c6e59fee74d3a8eb40f0625e28a3c2.tar.gz
android_device_lineage_sepolicy-dbf3187ee0c6e59fee74d3a8eb40f0625e28a3c2.tar.bz2
android_device_lineage_sepolicy-dbf3187ee0c6e59fee74d3a8eb40f0625e28a3c2.zip
lineage sepolicy: add lineage-sdk services
Change-Id: I81d0ac1769a63d665140f92fc88a2e8228e0605a
-rw-r--r--common/service.te8
-rw-r--r--common/service_contexts8
-rw-r--r--common/untrusted_app.te3
3 files changed, 19 insertions, 0 deletions
diff --git a/common/service.te b/common/service.te
new file mode 100644
index 0000000..9093f2e
--- /dev/null
+++ b/common/service.te
@@ -0,0 +1,8 @@
+type lineage_audio_service, system_api_service, system_server_service, service_manager_type;
+type lineage_hardware_service, system_api_service, system_server_service, service_manager_type;
+type lineage_livedisplay_service, system_api_service, system_server_service, service_manager_type;
+type lineage_performance_service, system_api_service, system_server_service, service_manager_type;
+type lineage_profile_service, system_api_service, system_server_service, service_manager_type;
+type lineage_status_bar_service, system_api_service, system_server_service, service_manager_type;
+type lineage_telephony_service, system_api_service, system_server_service, service_manager_type;
+type lineage_weather_service, system_api_service, system_server_service, service_manager_type;
diff --git a/common/service_contexts b/common/service_contexts
new file mode 100644
index 0000000..b7f5b57
--- /dev/null
+++ b/common/service_contexts
@@ -0,0 +1,8 @@
+lineageaudio u:object_r:lineage_audio_service:s0
+lineagehardware u:object_r:lineage_hardware_service:s0
+lineagelivedisplay u:object_r:lineage_livedisplay_service:s0
+lineageperformance u:object_r:lineage_performance_service:s0
+lineagestatusbar u:object_r:lineage_status_bar_service:s0
+lineagetelephonymanager u:object_r:lineage_telephony_service:s0
+lineageweather u:object_r:lineage_weather_service:s0
+profile u:object_r:lineage_profile_service:s0
diff --git a/common/untrusted_app.te b/common/untrusted_app.te
new file mode 100644
index 0000000..e839a6f
--- /dev/null
+++ b/common/untrusted_app.te
@@ -0,0 +1,3 @@
+allow untrusted_app lineage_weather_service:service_manager find;
+allow untrusted_app lineage_status_bar_service:service_manager find;
+allow untrusted_app lineage_profile_service:service_manager find;