From 6c888001f15fba44aaaaaf367757dd81b8512f65 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Tue, 24 Jul 2012 17:03:13 +0200 Subject: Provide rootwrap filters for nova-api-metadata The metadata service in nova-api needs access to ip[6]tables-{save-restore} to accept connections to the metadata service. This change adds an api-metadata.filters file that needs to be deployed on setups running nova-api-metadata or nova-api with "metadata" in enabled_apis. Fixes bug 1002111. Change-Id: I5aecb223876e12550394f31dbc7df893868baa8b --- etc/nova/rootwrap.d/api-metadata.filters | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/nova/rootwrap.d/api-metadata.filters diff --git a/etc/nova/rootwrap.d/api-metadata.filters b/etc/nova/rootwrap.d/api-metadata.filters new file mode 100644 index 000000000..ef454cbff --- /dev/null +++ b/etc/nova/rootwrap.d/api-metadata.filters @@ -0,0 +1,17 @@ +# nova-rootwrap command filters for api-metadata nodes +# This is needed on nova-api hosts running with "metadata" in enabled_apis +# or when running nova-api-metadata +# This file should be owned by (and only-writeable by) the root user + +[Filters] +# nova/network/linux_net.py: 'ip[6]tables-save' % (cmd, '-t', ... +iptables-save: CommandFilter, /sbin/iptables-save, root +iptables-save_usr: CommandFilter, /usr/sbin/iptables-save, root +ip6tables-save: CommandFilter, /sbin/ip6tables-save, root +ip6tables-save_usr: CommandFilter, /usr/sbin/ip6tables-save, root + +# nova/network/linux_net.py: 'ip[6]tables-restore' % (cmd,) +iptables-restore: CommandFilter, /sbin/iptables-restore, root +iptables-restore_usr: CommandFilter, /usr/sbin/iptables-restore, root +ip6tables-restore: CommandFilter, /sbin/ip6tables-restore, root +ip6tables-restore_usr: CommandFilter, /usr/sbin/ip6tables-restore, root -- cgit