This patch adds specific filters for the ip command. The first filter
matches ip with any subcomand except netns exec. The second filter
matches "ip netns exec" and then relies on the caller (match_filter) to
verify the sub-command against the other filters. Matching the
subcommand separately allows for a single set of filter definitions that
work with and without namespaces.
Reviewed: https:/ /review. openstack. org/12388 github. com/openstack/ quantum/ commit/ 28df8f6d8f2fddf 5fb5751eb5100d4 0a9b4745fa
Committed: http://
Submitter: Jenkins
Branch: master
commit 28df8f6d8f2fddf 5fb5751eb5100d4 0a9b4745fa
Author: Mark McClain <email address hidden>
Date: Tue Sep 4 19:50:00 2012 -0400
add rootwrap filters to wrap ip netns exec
fixes bug 1044083
This patch adds specific filters for the ip command. The first filter
matches ip with any subcomand except netns exec. The second filter
matches "ip netns exec" and then relies on the caller (match_filter) to
verify the sub-command against the other filters. Matching the
subcommand separately allows for a single set of filter definitions that
work with and without namespaces.
Change-Id: Ifd0378dc3461f8 4867efb3cb60396 d9cfa9e582d