Merge "Add sepolicy for tv.cec" into oc-dev am: 976fb16bc1

am: 6b2e934c3c

Change-Id: If4839eb04ee034f4cdc10db1d04b39e13c718b5c
This commit is contained in:
Donghyun Cho 2017-04-12 08:23:58 +00:00 committed by android-build-merger
commit 677d6f4e9c
5 changed files with 13 additions and 0 deletions

View file

@ -188,6 +188,7 @@ hal_client_domain(system_server, hal_power)
hal_client_domain(system_server, hal_sensors) hal_client_domain(system_server, hal_sensors)
binder_call(system_server, hal_thermal) binder_call(system_server, hal_thermal)
hal_client_domain(system_server, hal_thermal) hal_client_domain(system_server, hal_thermal)
hal_client_domain(system_server, hal_tv_cec)
hal_client_domain(system_server, hal_tv_input) hal_client_domain(system_server, hal_tv_input)
binder_call(system_server, hal_usb) binder_call(system_server, hal_usb)
hal_client_domain(system_server, hal_usb) hal_client_domain(system_server, hal_usb)

View file

@ -231,6 +231,9 @@ attribute hal_telephony_server;
attribute hal_thermal; attribute hal_thermal;
attribute hal_thermal_client; attribute hal_thermal_client;
attribute hal_thermal_server; attribute hal_thermal_server;
attribute hal_tv_cec;
attribute hal_tv_cec_client;
attribute hal_tv_cec_server;
attribute hal_tv_input; attribute hal_tv_input;
attribute hal_tv_input_client; attribute hal_tv_input_client;
attribute hal_tv_input_server; attribute hal_tv_input_server;

3
public/hal_tv_cec.te Normal file
View file

@ -0,0 +1,3 @@
# HwBinder IPC from clients into server, and callbacks
binder_call(hal_tv_cec_client, hal_tv_cec_server)
binder_call(hal_tv_cec_server, hal_tv_cec_client)

View file

@ -25,6 +25,7 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0
/(vendor|system/vendor)/bin/hw/rild u:object_r:rild_exec:s0 /(vendor|system/vendor)/bin/hw/rild u:object_r:rild_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.cec@1\.0-service u:object_r:hal_tv_cec_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input@1\.0-service u:object_r:hal_tv_input_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.tv\.input@1\.0-service u:object_r:hal_tv_input_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0

5
vendor/hal_tv_cec_default.te vendored Normal file
View file

@ -0,0 +1,5 @@
type hal_tv_cec_default, domain;
hal_server_domain(hal_tv_cec_default, hal_tv_cec)
type hal_tv_cec_default_exec, exec_type, file_type;
init_daemon_domain(hal_tv_cec_default)