Skip to content

Commit

Permalink
Add filters for quantum-debug
Browse files Browse the repository at this point in the history
only allows ping command here.
Fixes bug 1071110

Change-Id: I38f24e40de048845f01dbc07c79bb02acf92da31
  • Loading branch information
Nachi Ueno committed Nov 26, 2012
1 parent 56b810f commit a37b927
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions etc/quantum/rootwrap.d/debug.filters
Original file line number Diff line number Diff line change
@@ -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:]+

0 comments on commit a37b927

Please sign in to comment.