blob: e80cd01bf819c7e9725c45009db33f6bdef3aa08 [file] [log] [blame]
Zvikomborero VIncent Zvikarambace77c382016-08-21 04:37:28 -04001#======================connfwexe===========================================
2type connfwexe, domain;
3type connfwexe_exec, exec_type, file_type;
4init_daemon_domain(connfwexe)
5net_domain(connfwexe)
6
7# To make VT call
8binder_use(connfwexe)
9
10allow connfwexe ashmem_device:chr_file { getattr execute execute_no_trans };
11allow connfwexe block_device:dir { read search ioctl open getattr };
12allow connfwexe block_device:lnk_file { read lock ioctl open getattr };
13allow connfwexe bugreport_exec:file { execute execute_no_trans };
14allow connfwexe connfwexe:appletalk_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
15allow connfwexe connfwexe:capability { setuid net_raw sys_boot sys_nice dac_override };
16allow connfwexe connfwexe:dir { read search ioctl open getattr };
17allow connfwexe connfwexe:fd use;
18allow connfwexe connfwexe:fifo_file { read lock getattr write ioctl open append };
19allow connfwexe connfwexe:file { read lock getattr write ioctl open append };
20allow connfwexe connfwexe:ipc { unix_read setattr associate read create write getattr unix_write destroy };
21allow connfwexe connfwexe:key { search setattr read create write link view };
22allow connfwexe connfwexe:key_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
23allow connfwexe connfwexe:lnk_file { read lock ioctl open getattr };
24allow connfwexe connfwexe:msg { receive send };
25allow connfwexe connfwexe:msgq { unix_read setattr associate read create write enqueue getattr unix_write destroy };
26allow connfwexe connfwexe:netlink_route_socket { nlmsg_write lock accept connect shutdown append create nlmsg_read write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
27allow connfwexe connfwexe:netlink_selinux_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
28allow connfwexe connfwexe:packet_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
29allow connfwexe connfwexe:process { sigkill share getpgid signull setkeycreate siginh getattr setcurrent setrlimit rlimitinh fork getsession setexec setpgid setsched sigstop ptrace noatsecure setsockcreate setfscreate execheap sigchld execstack signal transition setcap execmem getcap getsched dyntransition };
30allow connfwexe connfwexe:rawip_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto node_bind };
31allow connfwexe connfwexe:sem { unix_read setattr associate read create write getattr unix_write destroy };
32allow connfwexe connfwexe:shm { unix_read setattr associate read lock create write getattr unix_write destroy };
33allow connfwexe connfwexe:socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
34allow connfwexe connfwexe:tcp_socket { lock accept connect shutdown append connectto create write relabelfrom getattr getopt listen acceptfrom setopt read newconn ioctl recv_msg name_bind name_connect send_msg setattr bind recvfrom sendto relabelto node_bind };
35allow connfwexe connfwexe:tun_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read attach_queue ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
36allow connfwexe connfwexe:udp_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto node_bind };
37allow connfwexe connfwexe:unix_dgram_socket { lock accept connect shutdown append create write relabelfrom getattr getopt listen setopt read ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
38allow connfwexe connfwexe:unix_stream_socket { lock accept connect shutdown append connectto create write relabelfrom getattr getopt listen acceptfrom setopt read newconn ioctl recv_msg name_bind send_msg setattr bind recvfrom sendto relabelto };
39allow connfwexe connfwexe_exec:file { read open getattr entrypoint execute };
40allow connfwexe connfwexe_tmpfs:file { read write };
41allow connfwexe dalvikcache_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append };
42allow connfwexe ddexe:unix_stream_socket connectto;
43allow connfwexe dumplog_data_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name };
44allow connfwexe dumplog_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append };
45allow connfwexe dumplog_data_file:sock_file { rename setattr read lock create getattr write ioctl link unlink open append };
46allow connfwexe dumpstate_exec:file { execute execute_no_trans };
47allow connfwexe dumpsys_exec:file { execute execute_no_trans };
48allow connfwexe emmcblk_device:blk_file { read lock getattr write ioctl open append };
49allow connfwexe init:process sigchld;
50allow connfwexe init:unix_stream_socket connectto;
51allow connfwexe property_socket:sock_file { write open append };
52allow connfwexe radio_data_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name };
53allow connfwexe radio_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append };
54allow connfwexe servicemanager:binder { transfer call };
55allow connfwexe servicemanager:fd use;
56allow connfwexe shell_exec:file { execute read lock getattr execute_no_trans ioctl open };
57allow connfwexe sysfs:file { read lock getattr write ioctl open append };
58allow connfwexe sysfs_ss_writable:file { read lock getattr write ioctl open append };
59allow connfwexe sysfs_wake_lock:file { read lock getattr write ioctl open append };
60allow connfwexe system_data_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name };
61allow connfwexe system_data_file:sock_file { rename setattr read lock create getattr write ioctl link unlink open append };
62allow connfwexe system_file:file { getattr execute execute_no_trans };
63allow connfwexe system_prop:property_service set;
64allow connfwexe system_server:binder { transfer call };
65allow connfwexe system_server:fd use;
66allow connfwexe zygote_exec:file { execute read lock getattr execute_no_trans ioctl open };