| 1 |
# neutron-rootwrap command filters for nodes on which neutron is |
| 2 |
# expected to control network |
| 3 |
# |
| 4 |
# This file should be owned by (and only-writable by) the root user |
| 5 |
|
| 6 |
# format seems to be |
| 7 |
# cmd-name: filter-name, raw-command, user, args |
| 8 |
|
| 9 |
[Filters] |
| 10 |
|
| 11 |
cp: RegExpFilter, cp, root, cp, -a, .*, .*/strongswan.d |
| 12 |
ip: IpFilter, ip, root |
| 13 |
ip_exec: IpNetnsExecFilter, ip, root |
| 14 |
ipsec: CommandFilter, ipsec, root |
| 15 |
sysctl_ip4_forward: RegExpFilter, sysctl, root, sysctl, -w, net.ipv4.ip_forward=1 |
| 16 |
sysctl_ip6_forward: RegExpFilter, sysctl, root, sysctl, -w, net.ipv6.conf.all.forwarding=1 |
| 17 |
rm: RegExpFilter, rm, root, rm, -rf, (.*/strongswan.d|.*/ipsec/[0-9a-z-]+) |
| 18 |
rm_file: RegExpFilter, rm, root, rm, -f, .*/ipsec.secrets |
| 19 |
strongswan: CommandFilter, strongswan, root |
| 20 |
neutron_netns_wrapper: CommandFilter, neutron-vpn-netns-wrapper, root |
| 21 |
neutron_netns_wrapper_local: CommandFilter, /usr/local/bin/neutron-vpn-netns-wrapper, root |
| 22 |
chown: RegExpFilter, chown, root, chown, --from=.*, root.root, .*/(ipsec.secrets|ipsec/[0-9a-z-]+/log) |