Files
android_device_qcom_sepolicy/common/port-bridge.te
Ravi Kumar Siddojigari c7def121c0 sepolicy : Resolve full treble compilation issues
Resolve compilation issues while enabling full treble
based on the change Iaf0d5662e2eb77b8e3651beaaf87b2e6094632bb

Change-Id: I8053b8076de1843fd32c0eac264164d717678797
2017-06-13 04:10:55 +05:30

33 lines
1006 B
Plaintext

type port-bridge, domain;
type port-bridge_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(port-bridge)
userdebug_or_eng(`
domain_auto_trans(shell, port-bridge_exec, netmgrd)
#domain_auto_trans(adbd, port-bridge_exec, netmgrd)
diag_use(port-bridge)
')
# Allow operations on different types of sockets
allow port-bridge port-bridge:netlink_kobject_uevent_socket { create bind read };
# Allow process capabilities
allow port-bridge port-bridge:capability dac_override;
allow port-bridge {
# Allow operations on mhi transport
mhi_device
# Allow operations on gadget serial device
gadget_serial_device
# Allow operations on ATCoP g-link transport
at_device
}:chr_file rw_file_perms;
# Allow write permissions for log file
allow port-bridge port_bridge_data_file:file create_file_perms;
allow port-bridge port_bridge_data_file:dir w_dir_perms;
#access ipa sysfs node
allow port-bridge sysfs:file r_file_perms;
allow port-bridge sysfs_data:file r_file_perms;