From 9e77994c9f2ea0fe68b33abeabdb080e50f788f1 Mon Sep 17 00:00:00 2001 From: Nilesh Bhosale Date: Thu, 22 Jan 2015 14:55:19 +0530 Subject: [PATCH] Adding required rootwrap filters for GPFS driver The rootwrap filters for commands 'df' and 'stat', which were part of the volume.filters before, were recently removed considering those to be unused. But, GPFS manila driver uses those and fails while performing certain operations, in their absence. Hence, adding those back. Change-Id: Ib736385f15058028b2bc0e38d325d0c256f6dd93 Closes-Bug: #1413544 --- etc/manila/rootwrap.d/share.filters | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/manila/rootwrap.d/share.filters b/etc/manila/rootwrap.d/share.filters index e6f2c68822..6d225fe2ac 100644 --- a/etc/manila/rootwrap.d/share.filters +++ b/etc/manila/rootwrap.d/share.filters @@ -57,6 +57,10 @@ mmdelsnapshot: CommandFilter, /usr/lpp/mmfs/bin/mmdelsnapshot, root rsync: CommandFilter, rsync, root # manila/share/drivers/ibm/gpfs.py: 'exportfs' exportfs: CommandFilter, exportfs, root +# manila/share/drivers/ibm/gpfs.py: 'stat', '--format=%F', '%s' +stat: CommandFilter, stat, root +# manila/share/drivers/ibm/gpfs.py: 'df', '-P', '-B', '1', '%s' +df: CommandFilter, df, root # Ganesha commands # manila/share/drivers/ibm/ganesha_utils.py: 'mv', '%s', '%s'