USB OTG gadgetfs, configfs, interface

Hello Community!

I am here asking if there is a snap interface for USB Controller (USB OTG in some SoC - RPI), something that can be used/modified with a userspace application with the **configfs/libcomposite** or **gadgetfs** API, in this case that can access: **/sys/kernel/config/usb_gadget/** and/or **/dev/gadget**, this would be mostly for Ubuntu Core, I see there is raw_usb , but seems to be mostly for access USB as a device not as a host controller.

Please advice.

So a month+ has passed, any ideas on how to approach this ?

A new snapd interface must be implemented IMHO.

Thank you for the answer @Lin-Buo-Ren ! What would be the process to do that ? (For reference)

Check out the Contribution guide of the snapd project, the implementation of the security confinement interfaces is in the interfaces/builtin sub-directory.