blob: e60c4c3d55331cdf99164fb0e69629b5fb707c37 [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
Avijit Kanti Das441bad42015-05-12 14:07:41 -070010# Allow operations on different types of sockets
Subash Abhinov Kasiviswanathan9d9c0b52014-10-28 11:30:03 -060011allow port-bridge port-bridge:netlink_kobject_uevent_socket { create bind read };
12
Avijit Kanti Das441bad42015-05-12 14:07:41 -070013# Allow process capabilities
14allow port-bridge port-bridge:capability dac_override;
Subash Abhinov Kasiviswanathan9d9c0b52014-10-28 11:30:03 -060015
Avijit Kanti Das441bad42015-05-12 14:07:41 -070016allow port-bridge {
17 # Allow operations on mhi transport
18 mhi_device
19 # Allow operations on gadget serial device
20 gadget_serial_device
21 # Allow operations on ATCoP g-link transport
22 at_device
23}:chr_file rw_file_perms;
Subash Abhinov Kasiviswanathan9d9c0b52014-10-28 11:30:03 -060024
Avijit Kanti Das441bad42015-05-12 14:07:41 -070025# Allow write permissions for log file
26allow port-bridge port_bridge_data_file:file create_file_perms;
27allow port-bridge port_bridge_data_file:dir w_dir_perms;