Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Bases: object
Command filter only checking that the 1st argument matches exec_path.
Returns command to execute (with sudo -u if run_as != root).
Returns specific environment to set, None if none.
Returns existing executable, or empty string if none found.
Only check that the first argument (command) matches exec_path.
Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Specific filter for the env utility.
Behaves like CommandFilter, except that it handles leading env A=B.. strings appropriately.
Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Specific filter for the ip utility to that does not match exec.
Bases: cinder.openstack.common.rootwrap.filters.ChainingFilter
Specific filter for the ip utility to that does match exec.
Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Specific filter for the kill calls.
1st argument is the user to run /bin/kill under 2nd argument is the location of the affected executable
if the argument is not absolute, it is checked against $PATH
Subsequent arguments list the accepted signals (if any)
This filter relies on /proc to accurately determine affected executable, so it will only work on procfs-capable systems (not OSX).
Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Command filter checking that path arguments are within given dirs
Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Specific filter for the utils.read_file_as_root call.
Bases: cinder.openstack.common.rootwrap.filters.CommandFilter
Command filter doing regexp matching for every argument.