Merge "Add sepolicy for usb gadget hal v1.1"

This commit is contained in:
Treehugger Robot 2020-01-16 11:01:35 +00:00 committed by Gerrit Code Review
commit a1f829d3f8
2 changed files with 6 additions and 0 deletions

View file

@ -63,6 +63,7 @@
/(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\.tuner@1\.0-service u:object_r:hal_tv_tuner_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\.gadget@1\.1-service u:object_r:hal_usb_gadget_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-service.example u:object_r:hal_vibrator_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.vr@1\.0-service u:object_r:hal_vr_default_exec:s0

5
vendor/hal_usb_gadget_default.te vendored Normal file
View file

@ -0,0 +1,5 @@
type hal_usb_gadget_default, domain;
hal_server_domain(hal_usb_gadget_default, hal_usb_gadget)
type hal_usb_gadget_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_usb_gadget_default)