]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add filters for quantum-debug
authorNachi Ueno <nachi@nttmcl.com>
Tue, 20 Nov 2012 22:54:53 +0000 (14:54 -0800)
committerNachi Ueno <nachi@nttmcl.com>
Mon, 26 Nov 2012 20:05:21 +0000 (12:05 -0800)
only allows ping command here.
Fixes bug 1071110

Change-Id: I38f24e40de048845f01dbc07c79bb02acf92da31

etc/quantum/rootwrap.d/debug.filters [new file with mode: 0644]

diff --git a/etc/quantum/rootwrap.d/debug.filters b/etc/quantum/rootwrap.d/debug.filters
new file mode 100644 (file)
index 0000000..6dbb4d7
--- /dev/null
@@ -0,0 +1,14 @@
+# quantum-rootwrap command filters for nodes on which quantum is
+# expected to control network
+#
+# This file should be owned by (and only-writeable by) the root user
+
+# format seems to be
+# cmd-name: filter-name, raw-command, user, args
+
+[Filters]
+
+# This is needed because we should ping
+# from inside a namespace which requires root
+ping: RegExpFilter, /bin/ping, root, ping, -w, \d+, -c, \d+, [0-9\.]+
+ping6: RegExpFilter, /bin/ping6, root, ping6, -w, \d+, -c, \d+, [0-9A-Fa-f:]+