blob: b2c592307f55bde80286d94f67fca7992cb15671 [file] [log] [blame]
Zvikomborero VIncent Zvikarambace77c382016-08-21 04:37:28 -04001#===================cs========================
2type cs, domain;
3type cs_exec, exec_type, file_type;
4init_daemon_domain(cs)
5net_domain(cs)
6
7# To make VT call
8binder_use(cs)
9
10allow cs cs: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 };
11allow cs cs:capability sys_nice;
12allow cs cs:dir { read search ioctl open getattr };
13allow cs cs:fd use;
14allow cs cs:fifo_file { read lock getattr write ioctl open append };
15allow cs cs:file { read lock getattr write ioctl open append };
16allow cs cs:ipc { unix_read setattr associate read create write getattr unix_write destroy };
17allow cs cs:key { search setattr read create write link view };
18allow cs cs: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 };
19allow cs cs:lnk_file { read lock ioctl open getattr };
20allow cs cs:msg { receive send };
21allow cs cs:msgq { unix_read setattr associate read create write enqueue getattr unix_write destroy };
22allow cs cs: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 };
23allow cs cs: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 };
24allow cs cs: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 };
25allow cs cs: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 };
26allow cs cs: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 };
27allow cs cs:sem { unix_read setattr associate read create write getattr unix_write destroy };
28allow cs cs:shm { unix_read setattr associate read lock create write getattr unix_write destroy };
29allow cs cs: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 };
30allow cs cs: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 };
31allow cs cs: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 };
32allow cs cs: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 };
33allow cs cs: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 };
34allow cs cs: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 };
35allow cs cs_exec:file { read open getattr entrypoint execute };
36allow cs cs_socket:dir { write remove_name search open add_name };
37allow cs cs_socket:sock_file { rename setattr read lock create getattr write ioctl link unlink open append };
38allow cs cs_tmpfs:file { read write };
39allow cs efs_file:dir { read search ioctl open getattr };
40allow cs efs_file:file { read lock ioctl open getattr };
41allow cs firmware_file:dir { read search ioctl open getattr };
42allow cs firmware_file:file { read lock ioctl open getattr };
43allow cs firmware_file:lnk_file { read lock ioctl open getattr };
44allow cs init:process sigchld;
45allow cs qseecom_device:chr_file { read lock getattr write ioctl open append };
46allow cs system_data_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name };
47allow cs system_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append };