oslo-rootwrap gives up matching if first chaining filter fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Unassigned | ||
oslo-incubator |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When there are multiple chaining filters that may match on the specified arguments, oslo-rootwrap gives up matching if first chaining filter reject the arguments, even though latter filters can accept them.
For example, /etc/cinder/
dd: CommandFilter, dd, root
ionice_1: ChainingRegExpF
ionice_2: ChainingRegExpF
and then
% sudo cinder-rootwrap /etc/cinder/
/usr/bin/
However, if /etc/cinder/
dd: CommandFilter, dd, root
ionice_2: ChainingRegExpF
ionice_1: ChainingRegExpF
it accepts the command.
This is because, in the former case, the first filter "ionice_1" hits to "ionice -c2" part but "-n7 dd ..." is denied by leaf filters, then oslo-rootwrap gives up further matching.
tags: | added: rootwrap |
Changed in oslo: | |
status: | New → In Progress |
Changed in oslo-incubator: | |
milestone: | none → juno-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
status: | New → Fix Released |
Fix for this bug is already merged: https:/ /review. openstack. org/#/c/ 106071/