Skip to content
Snippets Groups Projects
Commit deefb433 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "sepolicy for usb hal"

parents aa10429b ae206f16
No related branches found
No related tags found
No related merge requests found
...@@ -259,6 +259,7 @@ ...@@ -259,6 +259,7 @@
/system/bin/hw/android\.hardware\.power@1\.0-service u:object_r:hal_power_default_exec:s0 /system/bin/hw/android\.hardware\.power@1\.0-service u:object_r:hal_power_default_exec:s0
/system/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0 /system/bin/hw/android\.hardware\.sensors@1\.0-service u:object_r:hal_sensors_default_exec:s0
/system/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0 /system/bin/hw/android\.hardware\.thermal@1\.0-service u:object_r:hal_thermal_default_exec:s0
/system/bin/hw/android\.hardware\.usb@1\.0-service u:object_r:hal_usb_default_exec:s0
/system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0 /system/bin/hw/android\.hardware\.vibrator@1\.0-service u:object_r:hal_vibrator_default_exec:s0
/system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0 /system/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0
/system/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0 /system/bin/hw/android\.hardware\.wifi@1\.0-service u:object_r:hal_wifi_default_exec:s0
......
type hal_usb_default, domain;
hal_impl_domain(hal_usb_default, hal_usb)
type hal_usb_default_exec, exec_type, file_type;
init_daemon_domain(hal_usb_default)
...@@ -138,6 +138,7 @@ attribute hal_power; ...@@ -138,6 +138,7 @@ attribute hal_power;
attribute hal_sensors; attribute hal_sensors;
attribute hal_telephony; attribute hal_telephony;
attribute hal_thermal; attribute hal_thermal;
attribute hal_usb;
attribute hal_vibrator; attribute hal_vibrator;
attribute hal_vr; attribute hal_vr;
attribute hal_wifi; attribute hal_wifi;
# call into system_server process (callbacks)
binder_call(hal_usb, system_server)
allow hal_usb self:netlink_kobject_uevent_socket create;
allow hal_usb self:netlink_kobject_uevent_socket setopt;
allow hal_usb self:netlink_kobject_uevent_socket bind;
allow hal_usb self:netlink_kobject_uevent_socket read;
allow hal_usb sysfs:dir open;
allow hal_usb sysfs:dir read;
allow hal_usb sysfs:file read;
allow hal_usb sysfs:file open;
allow hal_usb sysfs:file write;
allow hal_usb sysfs:file getattr;
...@@ -178,6 +178,7 @@ binder_call(system_server, hal_memtrack) ...@@ -178,6 +178,7 @@ binder_call(system_server, hal_memtrack)
binder_call(system_server, hal_power) binder_call(system_server, hal_power)
binder_call(system_server, hal_sensors) binder_call(system_server, hal_sensors)
binder_call(system_server, hal_thermal) binder_call(system_server, hal_thermal)
binder_call(system_server, hal_usb)
binder_call(system_server, hal_vibrator) binder_call(system_server, hal_vibrator)
binder_call(system_server, hal_vr) binder_call(system_server, hal_vr)
binder_call(system_server, hal_wifi) binder_call(system_server, hal_wifi)
......
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