hal_power: Add sepolicy for power service. am: 3c30c4e2db

am: 77a862665c

Change-Id: I12c98c28a39f9343764722510b45f933d5309dd7
This commit is contained in:
Ruchi Kandoi 2016-11-04 00:19:55 +00:00 committed by android-build-merger
commit 76fcb45d9c
4 changed files with 10 additions and 0 deletions

View file

@ -224,6 +224,7 @@
/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\.power@1\.0-service u:object_r:hal_power_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
/system/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_exec:s0

2
private/hal_power.te Normal file
View file

@ -0,0 +1,2 @@
# may be started by init
init_daemon_domain(hal_power)

6
public/hal_power.te Normal file
View file

@ -0,0 +1,6 @@
# power subsystem
type hal_power, domain;
type hal_power_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(hal_power);

View file

@ -149,6 +149,7 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt };
binder_use(system_server)
binder_call(system_server, hal_boot)
binder_call(system_server, hal_light)
binder_call(system_server, hal_power)
binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr)
binder_call(system_server, binderservicedomain)