Skip to content
Snippets Groups Projects
Commit 5ff0f178 authored by Jiyong Park's avatar Jiyong Park
Browse files

configstore: add selinux policy for configstore@1.0 hal

This change adds selinux policy for configstore@1.0 hal. Currently, only
surfaceflinger has access to the HAL, but need to be widen.

Bug: 34314793
Test: build & run

Change-Id: I40e65032e9898ab5f412bfdb7745b43136d8e964
parent 4ca674e1
No related branches found
No related tags found
No related merge requests found
...@@ -243,6 +243,7 @@ ...@@ -243,6 +243,7 @@
/system/bin/hw/android\.hardware\.bluetooth@1\.0-service u:object_r:hal_bluetooth_default_exec:s0 /system/bin/hw/android\.hardware\.bluetooth@1\.0-service u:object_r:hal_bluetooth_default_exec:s0
/system/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_boot_exec:s0 /system/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_boot_exec:s0
/system/bin/hw/android\.hardware\.camera\.provider@2\.4-service u:object_r:hal_camera_default_exec:s0 /system/bin/hw/android\.hardware\.camera\.provider@2\.4-service u:object_r:hal_camera_default_exec:s0
/system/bin/hw/android\.hardware\.configstore@1\.0-service u:object_r:hal_configstore_default_exec:s0
/system/bin/hw/android\.hardware\.contexthub@1\.0-service u:object_r:hal_contexthub_default_exec:s0 /system/bin/hw/android\.hardware\.contexthub@1\.0-service u:object_r:hal_contexthub_default_exec:s0
/system/bin/hw/android\.hardware\.dumpstate@1\.0-service u:object_r:hal_dumpstate_default_exec:s0 /system/bin/hw/android\.hardware\.dumpstate@1\.0-service u:object_r:hal_dumpstate_default_exec:s0
/system/bin/hw/android\.hardware\.gatekeeper@1\.0-service u:object_r:hal_gatekeeper_default_exec:s0 /system/bin/hw/android\.hardware\.gatekeeper@1\.0-service u:object_r:hal_gatekeeper_default_exec:s0
......
type hal_configstore_default, domain;
hal_impl_domain(hal_configstore_default, hal_configstore)
type hal_configstore_default_exec, exec_type, file_type;
init_daemon_domain(hal_configstore_default)
...@@ -121,6 +121,7 @@ attribute haldomain; ...@@ -121,6 +121,7 @@ attribute haldomain;
attribute hal_audio; attribute hal_audio;
attribute hal_bluetooth; attribute hal_bluetooth;
attribute hal_camera; attribute hal_camera;
attribute hal_configstore;
attribute hal_contexthub; attribute hal_contexthub;
attribute hal_dumpstate; attribute hal_dumpstate;
attribute hal_fingerprint; attribute hal_fingerprint;
......
...@@ -8,6 +8,7 @@ typeattribute surfaceflinger mlstrustedsubject; ...@@ -8,6 +8,7 @@ typeattribute surfaceflinger mlstrustedsubject;
hwbinder_use(surfaceflinger) hwbinder_use(surfaceflinger)
binder_call(surfaceflinger, hal_graphics_allocator) binder_call(surfaceflinger, hal_graphics_allocator)
binder_call(surfaceflinger, hal_graphics_composer) binder_call(surfaceflinger, hal_graphics_composer)
binder_call(surfaceflinger, hal_configstore)
# Perform Binder IPC. # Perform Binder IPC.
binder_use(surfaceflinger) binder_use(surfaceflinger)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment