Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port nova-rootwrap changes to cinder-rootwrap
Port recent nova-rootwrap changes to cinder-rootwrap, including: * Move filter definition from Python module to configuration files * Fix tests execution on Fedora (bug 1027814) * Remove executable bit on cinder/rootwrap files This certainly needs a matching change to devstack to pass gating. Change-Id: I963bc7890ba285ae515ea61bbd960bd2523f9061
- Loading branch information
Showing
8 changed files
with
112 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Configuration for cinder-rootwrap | ||
# This file should be owned by (and only-writeable by) the root user | ||
|
||
[DEFAULT] | ||
# List of directories to load filter definitions from (separated by ','). | ||
# These directories MUST all be only writeable by root ! | ||
filters_path=/etc/cinder/rootwrap.d,/usr/share/cinder/rootwrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# nova-rootwrap command filters for volume nodes | ||
# This file should be owned by (and only-writeable by) the root user | ||
|
||
[Filters] | ||
# nova/volume/iscsi.py: iscsi_helper '--op' ... | ||
ietadm: CommandFilter, /usr/sbin/ietadm, root | ||
tgtadm: CommandFilter, /usr/sbin/tgtadm, root | ||
|
||
# nova/volume/driver.py: 'vgs', '--noheadings', '-o', 'name' | ||
vgs: CommandFilter, /sbin/vgs, root | ||
|
||
# nova/volume/driver.py: 'lvcreate', '-L', sizestr, '-n', volume_name,.. | ||
# nova/volume/driver.py: 'lvcreate', '-L', ... | ||
lvcreate: CommandFilter, /sbin/lvcreate, root | ||
|
||
# nova/volume/driver.py: 'dd', 'if=%s' % srcstr, 'of=%s' % deststr,... | ||
dd: CommandFilter, /bin/dd, root | ||
|
||
# nova/volume/driver.py: 'lvremove', '-f', %s/%s % ... | ||
lvremove: CommandFilter, /sbin/lvremove, root | ||
|
||
# nova/volume/driver.py: 'lvdisplay', '--noheading', '-C', '-o', 'Attr',.. | ||
lvdisplay: CommandFilter, /sbin/lvdisplay, root | ||
|
||
# nova/volume/driver.py: 'iscsiadm', '-m', 'discovery', '-t',... | ||
# nova/volume/driver.py: 'iscsiadm', '-m', 'node', '-T', ... | ||
iscsiadm: CommandFilter, /sbin/iscsiadm, root |