Merge "Add sepolicy for health filesystem HAL" am: 3dd465a097

am: 33eee9c584

Change-Id: I84d7cc56ec9280957218357ed97c1ca606b24795
This commit is contained in:
Yifan Hong 2018-08-10 16:10:17 -07:00 committed by android-build-merger
commit 562a0d2f97
9 changed files with 18 additions and 0 deletions

View file

@ -58,6 +58,7 @@
hal_codec2_hwservice hal_codec2_hwservice
hal_confirmationui_hwservice hal_confirmationui_hwservice
hal_evs_hwservice hal_evs_hwservice
hal_health_filesystem_hwservice
hal_lowpan_hwservice hal_lowpan_hwservice
hal_neuralnetworks_hwservice hal_neuralnetworks_hwservice
hal_secure_element_hwservice hal_secure_element_hwservice

View file

@ -52,6 +52,7 @@
hal_codec2_hwservice hal_codec2_hwservice
hal_confirmationui_hwservice hal_confirmationui_hwservice
hal_evs_hwservice hal_evs_hwservice
hal_health_filesystem_hwservice
hal_lowpan_hwservice hal_lowpan_hwservice
hal_secure_element_hwservice hal_secure_element_hwservice
hal_usb_gadget_hwservice hal_usb_gadget_hwservice

View file

@ -5,6 +5,7 @@
(typeattributeset new_objects (typeattributeset new_objects
( activity_task_service ( activity_task_service
adb_service adb_service
hal_health_filesystem_hwservice
llkd llkd
llkd_exec llkd_exec
llkd_tmpfs llkd_tmpfs

View file

@ -27,6 +27,7 @@ android.hardware.graphics.allocator::IAllocator u:object_r:hal_g
android.hardware.graphics.composer::IComposer u:object_r:hal_graphics_composer_hwservice:s0 android.hardware.graphics.composer::IComposer u:object_r:hal_graphics_composer_hwservice:s0
android.hardware.graphics.mapper::IMapper u:object_r:hal_graphics_mapper_hwservice:s0 android.hardware.graphics.mapper::IMapper u:object_r:hal_graphics_mapper_hwservice:s0
android.hardware.health::IHealth u:object_r:hal_health_hwservice:s0 android.hardware.health::IHealth u:object_r:hal_health_hwservice:s0
android.hardware.health.filesystem::IFileSystem u:object_r:hal_health_filesystem_hwservice:s0
android.hardware.ir::IConsumerIr u:object_r:hal_ir_hwservice:s0 android.hardware.ir::IConsumerIr u:object_r:hal_ir_hwservice:s0
android.hardware.keymaster::IKeymasterDevice u:object_r:hal_keymaster_hwservice:s0 android.hardware.keymaster::IKeymasterDevice u:object_r:hal_keymaster_hwservice:s0
android.hardware.light::ILight u:object_r:hal_light_hwservice:s0 android.hardware.light::ILight u:object_r:hal_light_hwservice:s0

View file

@ -253,6 +253,7 @@ hal_attribute(gnss);
hal_attribute(graphics_allocator); hal_attribute(graphics_allocator);
hal_attribute(graphics_composer); hal_attribute(graphics_composer);
hal_attribute(health); hal_attribute(health);
hal_attribute(health_filesystem);
hal_attribute(ir); hal_attribute(ir);
hal_attribute(keymaster); hal_attribute(keymaster);
hal_attribute(light); hal_attribute(light);

View file

@ -0,0 +1,5 @@
# HwBinder IPC from client to server, and callbacks
binder_call(hal_health_filesystem_client, hal_health_filesystem_server)
binder_call(hal_health_filesystem_server, hal_health_filesystem_client)
hal_attribute_hwservice(hal_health_filesystem, hal_health_filesystem_hwservice)

View file

@ -24,6 +24,7 @@ type hal_graphics_allocator_hwservice, hwservice_manager_type;
type hal_graphics_composer_hwservice, hwservice_manager_type; type hal_graphics_composer_hwservice, hwservice_manager_type;
type hal_graphics_mapper_hwservice, hwservice_manager_type, same_process_hwservice; type hal_graphics_mapper_hwservice, hwservice_manager_type, same_process_hwservice;
type hal_health_hwservice, hwservice_manager_type; type hal_health_hwservice, hwservice_manager_type;
type hal_health_filesystem_hwservice, hwservice_manager_type;
type hal_ir_hwservice, hwservice_manager_type; type hal_ir_hwservice, hwservice_manager_type;
type hal_keymaster_hwservice, hwservice_manager_type; type hal_keymaster_hwservice, hwservice_manager_type;
type hal_light_hwservice, hwservice_manager_type; type hal_light_hwservice, hwservice_manager_type;

View file

@ -26,6 +26,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.graphics\.composer@2\.2-service u:object_r:hal_graphics_composer_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.graphics\.composer@2\.2-service u:object_r:hal_graphics_composer_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.health@1\.0-service u:object_r:hal_health_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.health@1\.0-service u:object_r:hal_health_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.health@2\.0-service u:object_r:hal_health_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.health@2\.0-service u:object_r:hal_health_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.health\.filesystem@1\.0-service u:object_r:hal_health_filesystem_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service u:object_r:hal_ir_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service u:object_r:hal_ir_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@3\.0-service u:object_r:hal_keymaster_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@3\.0-service u:object_r:hal_keymaster_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@4\.0-service u:object_r:hal_keymaster_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.keymaster@4\.0-service u:object_r:hal_keymaster_default_exec:s0

View file

@ -0,0 +1,6 @@
type hal_health_filesystem_default, domain;
hal_server_domain(hal_health_filesystem_default, hal_health_filesystem)
type hal_health_filesystem_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_health_filesystem_default)