blob: 22976fe9b62930b3f08a9f16438aaf31016a3922 [file] [log] [blame]
Bjoern Johansson127395f2017-02-09 22:28:47 -08001# IPv6 proxying
Bjoern Johansson760871c2017-08-31 12:57:18 -07002type ipv6proxy, domain;
3type ipv6proxy_exec, exec_type, vendor_file_type, file_type;
Bjoern Johansson127395f2017-02-09 22:28:47 -08004
5init_daemon_domain(ipv6proxy)
6net_domain(ipv6proxy)
7
8# Allow ipv6proxy to be run by execns in its own domain
9domain_auto_trans(execns, ipv6proxy_exec, ipv6proxy);
10allow ipv6proxy execns:fd use;
11
12allow ipv6proxy self:capability { sys_admin sys_module net_admin net_raw };
13allow ipv6proxy self:packet_socket { bind create read };
14allow ipv6proxy self:netlink_route_socket nlmsg_write;
15allow ipv6proxy varrun_file:dir search;
Bjoern Johansson760871c2017-08-31 12:57:18 -070016allowxperm ipv6proxy self:udp_socket ioctl { SIOCSIFFLAGS SIOCGIFHWADDR };