diff --git a/private/file_contexts b/private/file_contexts index 76297c33ffad01ed5a570d07e1ed343aac7d4df4..241cccdf96feae96113d46f1b716fdd10e6a3e0d 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -222,6 +222,7 @@ /system/lib(64)?/libart.* u:object_r:libart_file:s0 /system/bin/hw/android\.hardware\.audio@2\.0-service u:object_r:hal_audio_exec:s0 /system/bin/hw/android\.hardware\.boot@1\.0-service u:object_r:hal_boot_exec:s0 +/system/bin/hw/android\.hardware\.light@2\.0-service u:object_r:hal_light_exec:s0 /system/bin/hw/android\.hardware\.nfc@1\.0-service u:object_r:hal_nfc_exec:s0 /system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_exec:s0 /system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_exec:s0 diff --git a/private/hal_light.te b/private/hal_light.te new file mode 100644 index 0000000000000000000000000000000000000000..8c5f10833273f76f54c8fdb3cd90a582408cac7a --- /dev/null +++ b/private/hal_light.te @@ -0,0 +1,2 @@ +# may be started by init +init_daemon_domain(hal_light) diff --git a/public/hal_light.te b/public/hal_light.te new file mode 100644 index 0000000000000000000000000000000000000000..cdb36bbc1a1716d7629cb05586b5a00f793dd658 --- /dev/null +++ b/public/hal_light.te @@ -0,0 +1,9 @@ +# light subsystem +type hal_light, domain; +type hal_light_exec, exec_type, file_type; + +# hwbinder access +hwbinder_use(hal_light) + +# call into system_server process (callbacks) +binder_call(hal_light, system_server) diff --git a/public/system_server.te b/public/system_server.te index b59aa0596ed5f816552bcf79861b1503018cee68..a728c15a73b58d21d532a50ade019668db767f52 100644 --- a/public/system_server.te +++ b/public/system_server.te @@ -148,6 +148,7 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt }; # Perform Binder IPC. binder_use(system_server) binder_call(system_server, hal_boot) +binder_call(system_server, hal_light) binder_call(system_server, hal_vibrator) binder_call(system_server, hal_vr) binder_call(system_server, binderservicedomain)