Subash Abhinov Kasiviswanathan | 9d9c0b5 | 2014-10-28 11:30:03 -0600 | [diff] [blame] | 1 | type port-bridge, domain; |
| 2 | type port-bridge_exec, exec_type, file_type; |
| 3 | init_daemon_domain(port-bridge) |
| 4 | |
| 5 | userdebug_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 |
| 11 | allow port-bridge port-bridge:netlink_kobject_uevent_socket { create bind read }; |
| 12 | |
| 13 | #Allow process capabilities |
| 14 | allow port-bridge port-bridge:capability { dac_override }; |
| 15 | |
| 16 | #Allow operations on mhi transport |
| 17 | allow port-bridge mhi_device:chr_file rw_file_perms; |
| 18 | |
| 19 | #Allow operations on gadget serial device |
| 20 | allow port-bridge gadget_serial_device:chr_file { rw_file_perms }; |