diff options
author | Linux4 <tim@linux4.de> | 2020-04-20 17:46:02 +0200 |
---|---|---|
committer | Linux4 <tim@linux4.de> | 2020-04-25 06:55:19 +0200 |
commit | 8f5528aafa8da8e80771b7465341d4922c61ca07 (patch) | |
tree | 365dababafd8aa0ae29023434321e0ef9b7e3dbc | |
parent | 98820febbe582e0d2bd1c7bdfa354108d016d201 (diff) | |
download | android_device_lineage_sepolicy-8f5528aafa8da8e80771b7465341d4922c61ca07.tar.gz android_device_lineage_sepolicy-8f5528aafa8da8e80771b7465341d4922c61ca07.tar.bz2 android_device_lineage_sepolicy-8f5528aafa8da8e80771b7465341d4922c61ca07.zip |
sepolicy: add hal_lineage_powershare
Change-Id: I2ed2d8c1c8ac03c33900d83802e8a981785e6406
-rw-r--r-- | common/dynamic/hal_lineage_powershare.te | 8 | ||||
-rw-r--r-- | common/dynamic/hwservice.te | 1 | ||||
-rw-r--r-- | common/dynamic/hwservice_contexts | 1 | ||||
-rw-r--r-- | common/private/platform_app.te | 3 | ||||
-rw-r--r-- | common/private/system_server.te | 1 | ||||
-rw-r--r-- | common/public/attributes | 1 | ||||
-rw-r--r-- | common/vendor/hal_lineage_powershare_default.te | 5 |
7 files changed, 20 insertions, 0 deletions
diff --git a/common/dynamic/hal_lineage_powershare.te b/common/dynamic/hal_lineage_powershare.te new file mode 100644 index 0000000..86e8aa3 --- /dev/null +++ b/common/dynamic/hal_lineage_powershare.te @@ -0,0 +1,8 @@ +# HWBinder IPC from client to server +binder_call(hal_lineage_powershare_client, hal_lineage_powershare_server) + +add_hwservice(hal_lineage_powershare_server, hal_lineage_powershare_hwservice) +allow hal_lineage_powershare_client hal_lineage_powershare_hwservice:hwservice_manager find; + +# Allow binder communication with platform_app +binder_call(hal_lineage_powershare, platform_app) diff --git a/common/dynamic/hwservice.te b/common/dynamic/hwservice.te index dbf5478..8fb249d 100644 --- a/common/dynamic/hwservice.te +++ b/common/dynamic/hwservice.te @@ -1,5 +1,6 @@ type hal_lineage_camera_motor_hwservice, hwservice_manager_type; type hal_lineage_fod_hwservice, hwservice_manager_type; type hal_lineage_livedisplay_hwservice, hwservice_manager_type; +type hal_lineage_powershare_hwservice, hwservice_manager_type; type hal_lineage_touch_hwservice, hwservice_manager_type; type hal_lineage_trust_hwservice, hwservice_manager_type; diff --git a/common/dynamic/hwservice_contexts b/common/dynamic/hwservice_contexts index 36df92e..c01ee63 100644 --- a/common/dynamic/hwservice_contexts +++ b/common/dynamic/hwservice_contexts @@ -10,6 +10,7 @@ vendor.lineage.livedisplay::IPictureAdjustment u:object vendor.lineage.livedisplay::IReadingEnhancement u:object_r:hal_lineage_livedisplay_hwservice:s0 vendor.lineage.livedisplay::ISunlightEnhancement u:object_r:hal_lineage_livedisplay_hwservice:s0 vendor.lineage.power::ILineagePower u:object_r:hal_power_hwservice:s0 +vendor.lineage.powershare::IPowerShare u:object_r:hal_lineage_powershare_hwservice:s0 vendor.lineage.touch::IGloveMode u:object_r:hal_lineage_touch_hwservice:s0 vendor.lineage.touch::IKeyDisabler u:object_r:hal_lineage_touch_hwservice:s0 vendor.lineage.touch::IStylusMode u:object_r:hal_lineage_touch_hwservice:s0 diff --git a/common/private/platform_app.te b/common/private/platform_app.te index 8156095..fa3cb86 100644 --- a/common/private/platform_app.te +++ b/common/private/platform_app.te @@ -6,3 +6,6 @@ hal_client_domain(platform_app, hal_lineage_fod) # Allow LiveDisplay HAL service to be found hal_client_domain(platform_app, hal_lineage_livedisplay) + +# Allow PowerShare HAL service to be found +hal_client_domain(platform_app, hal_lineage_powershare) diff --git a/common/private/system_server.te b/common/private/system_server.te index b4074a5..5d408ad 100644 --- a/common/private/system_server.te +++ b/common/private/system_server.te @@ -7,3 +7,4 @@ hal_client_domain(system_server, hal_lineage_fod) hal_client_domain(system_server, hal_lineage_livedisplay) hal_client_domain(system_server, hal_lineage_touch) hal_client_domain(system_server, hal_lineage_trust) +hal_client_domain(system_server, hal_lineage_powershare) diff --git a/common/public/attributes b/common/public/attributes index 6bc04a0..5661aa4 100644 --- a/common/public/attributes +++ b/common/public/attributes @@ -4,3 +4,4 @@ hal_attribute(lineage_fod) hal_attribute(lineage_livedisplay) hal_attribute(lineage_touch) hal_attribute(lineage_trust) +hal_attribute(lineage_powershare) diff --git a/common/vendor/hal_lineage_powershare_default.te b/common/vendor/hal_lineage_powershare_default.te new file mode 100644 index 0000000..23192c8 --- /dev/null +++ b/common/vendor/hal_lineage_powershare_default.te @@ -0,0 +1,5 @@ +type hal_lineage_powershare_default, domain; +hal_server_domain(hal_lineage_powershare_default, hal_lineage_powershare) + +type hal_lineage_powershare_default_exec, exec_type, vendor_file_type, file_type; +init_daemon_domain(hal_lineage_powershare_default) |