Zvikomborero VIncent Zvikaramba | ce77c38 | 2016-08-21 04:37:28 -0400 | [diff] [blame^] | 1 | #===================at_distributor============================ |
| 2 | type at_distributor, domain; |
| 3 | type at_distributor_exec, exec_type, file_type; |
| 4 | init_daemon_domain(at_distributor) |
| 5 | net_domain(at_distributor) |
| 6 | |
| 7 | # To make VT call |
| 8 | binder_use(at_distributor) |
| 9 | |
| 10 | allow at_distributor adbd:dir { read search ioctl open getattr }; |
| 11 | allow at_distributor alarm_device:chr_file { read lock getattr write ioctl open append }; |
| 12 | allow at_distributor app_efs_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 13 | allow at_distributor app_efs_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 14 | allow at_distributor ashmem_device:chr_file { getattr execute execute_no_trans }; |
| 15 | allow at_distributor at_distributor: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 }; |
| 16 | allow at_distributor at_distributor:capability { setuid dac_override sys_nice chown fsetid fowner }; |
| 17 | allow at_distributor at_distributor:dir { read search ioctl open getattr }; |
| 18 | allow at_distributor at_distributor:fd use; |
| 19 | allow at_distributor at_distributor:fifo_file { read lock getattr write ioctl open append }; |
| 20 | allow at_distributor at_distributor:file { read lock getattr write ioctl open append }; |
| 21 | allow at_distributor at_distributor:ipc { unix_read setattr associate read create write getattr unix_write destroy }; |
| 22 | allow at_distributor at_distributor:key { search setattr read create write link view }; |
| 23 | allow at_distributor at_distributor: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 }; |
| 24 | allow at_distributor at_distributor:lnk_file { read lock ioctl open getattr }; |
| 25 | allow at_distributor at_distributor:msg { receive send }; |
| 26 | allow at_distributor at_distributor:msgq { unix_read setattr associate read create write enqueue getattr unix_write destroy }; |
| 27 | allow at_distributor at_distributor: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 }; |
| 28 | allow at_distributor at_distributor: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 }; |
| 29 | allow at_distributor at_distributor: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 }; |
| 30 | allow at_distributor at_distributor: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 }; |
| 31 | allow at_distributor at_distributor: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 }; |
| 32 | allow at_distributor at_distributor:sem { unix_read setattr associate read create write getattr unix_write destroy }; |
| 33 | allow at_distributor at_distributor:shm { unix_read setattr associate read lock create write getattr unix_write destroy }; |
| 34 | allow at_distributor at_distributor: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 }; |
| 35 | allow at_distributor at_distributor: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 }; |
| 36 | allow at_distributor at_distributor: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 }; |
| 37 | allow at_distributor at_distributor: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 }; |
| 38 | allow at_distributor at_distributor: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 }; |
| 39 | allow at_distributor at_distributor: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 }; |
| 40 | allow at_distributor at_distributor_exec:file { read open getattr entrypoint execute }; |
| 41 | allow at_distributor at_distributor_tmpfs:file { read write }; |
| 42 | allow at_distributor binderservicedomain:binder { transfer call }; |
| 43 | allow at_distributor binderservicedomain:fd use; |
| 44 | allow at_distributor block_device:dir { read search ioctl open getattr }; |
| 45 | allow at_distributor carrier_efs_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 46 | allow at_distributor carrier_efs_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 47 | allow at_distributor cgroup:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 48 | allow at_distributor cgroup:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 49 | allow at_distributor dumplog_data_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 50 | allow at_distributor dumplog_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 51 | allow at_distributor dumplog_data_file:sock_file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 52 | allow at_distributor dumpstate_exec:file { execute execute_no_trans }; |
| 53 | allow at_distributor dumpsys_exec:file { execute execute_no_trans }; |
| 54 | allow at_distributor efs_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 55 | allow at_distributor efs_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 56 | allow at_distributor firmware_file:dir { read search ioctl open getattr }; |
| 57 | allow at_distributor firmware_file:file { read lock ioctl open getattr }; |
| 58 | allow at_distributor imei_efs_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 59 | allow at_distributor imei_efs_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 60 | allow at_distributor init:process sigchld; |
| 61 | allow at_distributor init:unix_stream_socket connectto; |
| 62 | allow at_distributor kernel:system syslog_read; |
| 63 | allow at_distributor nfc:binder { transfer call }; |
| 64 | allow at_distributor nfc:fd use; |
| 65 | allow at_distributor property_socket:sock_file write; |
| 66 | allow at_distributor qseecom_device:chr_file { read lock getattr write ioctl open append }; |
| 67 | allow at_distributor radio:binder { transfer call }; |
| 68 | allow at_distributor radio:fd use; |
| 69 | allow at_distributor radio_data_file:dir { search read getattr write ioctl remove_name open add_name }; |
| 70 | allow at_distributor radio_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 71 | allow at_distributor radio_device:chr_file { read lock getattr write ioctl open append }; |
| 72 | allow at_distributor radio_prop:property_service set; |
| 73 | allow at_distributor rild:unix_stream_socket connectto; |
| 74 | allow at_distributor sec-ril:unix_stream_socket connectto; |
| 75 | allow at_distributor sec_efs_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 76 | allow at_distributor sec_efs_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 77 | allow at_distributor sensorhubservice:binder { transfer call }; |
| 78 | allow at_distributor sensorhubservice:fd use; |
| 79 | allow at_distributor servicemanager:binder { transfer call }; |
| 80 | allow at_distributor servicemanager:fd use; |
| 81 | allow at_distributor shell_exec:file { execute read lock getattr execute_no_trans ioctl open }; |
| 82 | allow at_distributor su_exec:file { execute read lock getattr execute_no_trans ioctl open }; |
| 83 | allow at_distributor sysfs:file { write open append }; |
| 84 | allow at_distributor sysfs_sec:file { setattr read lock getattr write ioctl open append }; |
| 85 | allow at_distributor sysfs_ss_writable:file { read lock getattr write ioctl open append }; |
| 86 | allow at_distributor sysfs_wake_lock:file { read lock getattr write ioctl open append }; |
| 87 | allow at_distributor system_app:binder { transfer call }; |
| 88 | allow at_distributor system_app:fd use; |
| 89 | allow at_distributor system_data_file:dir { rename search setattr read create reparent getattr write ioctl link rmdir remove_name unlink open add_name }; |
| 90 | allow at_distributor system_data_file:file { rename setattr read lock create getattr write ioctl link unlink open append }; |
| 91 | allow at_distributor system_file:file { getattr execute execute_no_trans }; |
| 92 | allow at_distributor system_server:binder transfer; |
| 93 | allow at_distributor uart_device:chr_file { read lock getattr write ioctl open append }; |
| 94 | allow at_distributor zygote_exec:file { execute read lock getattr execute_no_trans ioctl open }; |