1# 464xlat daemon 2type clatd, domain; 3type clatd_exec, exec_type, file_type; 4 5net_domain(clatd) 6 7# Access objects inherited from netd. 8allow clatd netd:fd use; 9allow clatd netd:fifo_file { read write }; 10# TODO: Check whether some or all of these sockets should be close-on-exec. 11allow clatd netd:netlink_kobject_uevent_socket { read write }; 12allow clatd netd:netlink_nflog_socket { read write }; 13allow clatd netd:netlink_route_socket { read write }; 14allow clatd netd:udp_socket { read write }; 15allow clatd netd:unix_stream_socket { read write }; 16allow clatd netd:unix_dgram_socket { read write }; 17 18allow clatd self:capability { net_admin net_raw setuid setgid }; 19 20allow clatd self:netlink_route_socket nlmsg_write; 21allow clatd self:{ packet_socket rawip_socket tun_socket } create_socket_perms; 22allow clatd tun_device:chr_file rw_file_perms; 23