diff --git a/private/compat/26.0/26.0.ignore.cil b/private/compat/26.0/26.0.ignore.cil index 9da748a92c96f88d5850b44d5d5af0e3ce5236c4..95e617bf69d3ec81dc0050155f6b3c74f5bda51a 100644 --- a/private/compat/26.0/26.0.ignore.cil +++ b/private/compat/26.0/26.0.ignore.cil @@ -88,6 +88,9 @@ traced_tmpfs update_engine_log_data_file vendor_default_prop + usbd + usbd_exec + usbd_tmpfs vendor_init vendor_shell vold_prepare_subdirs diff --git a/private/file_contexts b/private/file_contexts index 98552a322c5eaabd903b3438fe1867c64ef334af..8dfec78a48ff103a2224ae3c618c5ce00b682904 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -240,6 +240,7 @@ /system/bin/healthd u:object_r:healthd_exec:s0 /system/bin/clatd u:object_r:clatd_exec:s0 /system/bin/lmkd u:object_r:lmkd_exec:s0 +/system/bin/usbd u:object_r:usbd_exec:s0 /system/bin/inputflinger u:object_r:inputflinger_exec:s0 /system/bin/logd u:object_r:logd_exec:s0 /system/bin/traced u:object_r:traced_exec:s0 diff --git a/private/usbd.te b/private/usbd.te new file mode 100644 index 0000000000000000000000000000000000000000..13a0ad7a6f6bb180d530debc5bf28bc1cc50d2da --- /dev/null +++ b/private/usbd.te @@ -0,0 +1,12 @@ +typeattribute usbd coredomain; + +init_daemon_domain(usbd) + +# Access usb gadget hal +hal_client_domain(usbd, hal_usb_gadget) + +# Access persist.sys.usb.config +get_prop(usbd, system_prop) + +# start adbd during boot if adb is enabled +set_prop(usbd, ctl_default_prop) diff --git a/public/usbd.te b/public/usbd.te new file mode 100644 index 0000000000000000000000000000000000000000..98786e06228f9fb2a7b23ff68cc7e1d05ed349dc --- /dev/null +++ b/public/usbd.te @@ -0,0 +1,3 @@ +type usbd, domain; +type usbd_exec, exec_type, file_type; +