blob: 3a737d740bd8059cabcedb111e7de6a5d55aefd6 [file] [log] [blame]
Subash Abhinov Kasiviswanathan9d9c0b52014-10-28 11:30:03 -06001type port-bridge, domain;
2type port-bridge_exec, exec_type, file_type;
3init_daemon_domain(port-bridge)
4
5userdebug_or_eng(`
6 domain_auto_trans(shell, port-bridge_exec, netmgrd)
7 domain_auto_trans(adbd, port-bridge_exec, netmgrd)
8')
9
10#Allow operations on different types of sockets
11allow port-bridge port-bridge:netlink_kobject_uevent_socket { create bind read };
12
13#Allow process capabilities
14allow port-bridge port-bridge:capability { dac_override };
15
16#Allow operations on mhi transport
17allow port-bridge mhi_device:chr_file rw_file_perms;
18
19#Allow operations on gadget serial device
20allow port-bridge gadget_serial_device:chr_file { rw_file_perms };