1type usbip_service, domain; 2type sysfs_usbip, sysfs_type, fs_type; 3type usbip_service_exec, exec_type, system_file_type, file_type; 4 5net_domain(usbip_service); 6 7allow usbip_service netd:tcp_socket { read write }; 8 9allow kernel su:tcp_socket { read write }; 10allow kernel shell:tcp_socket { read write }; 11 12allow init sysfs_usbip:file setattr; 13 14allow shell sysfs_usbip:dir { r_dir_perms }; 15allow shell sysfs_usbip:file { rw_file_perms }; 16allow shell usbip_service_exec:file { execute execute_no_trans getattr map open read }; 17