Add sepolicy for usb gadget hal v1.1

Bug: 147645728
Test: build pass and service running correctly
Change-Id: I52b6bcae2c05998e3f22c39998597e2ecef55036
This commit is contained in:
Howard Yen 2019-11-28 15:02:26 +08:00
parent f9d45fc447
commit a98cdefad6
2 changed files with 6 additions and 0 deletions

View file

@ -61,6 +61,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)