• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# HwBinder IPC from client to server, and callbacks
2binder_call(hal_usb_gadget_client, hal_usb_gadget_server)
3binder_call(hal_usb_gadget_server, hal_usb_gadget_client)
4
5add_hwservice(hal_usb_gadget_server, hal_usb_gadget_hwservice)
6allow hal_usb_gadget_client hal_usb_gadget_hwservice:hwservice_manager find;
7
8# Configuring usb gadget functions
9allow hal_usb_gadget_server configfs:lnk_file { read create unlink};
10allow hal_usb_gadget_server configfs:dir rw_dir_perms;
11allow hal_usb_gadget_server configfs:file rw_file_perms;
12allow hal_usb_gadget_server functionfs:dir { read search };
13allow hal_usb_gadget_server functionfs:file read;
14
15