From 65b3421f4b66b1e26be54f4bcb93fd3f6c7fb6f8 Mon Sep 17 00:00:00 2001 From: Carlos Goncalves Date: Thu, 6 Dec 2012 14:50:29 +0000 Subject: [PATCH] Add commands used by NFS volume driver to rootwrap Fixes bug 1087282 Change-Id: Ib873c334633b4d586c2e53bac5d1cae0dcf65be7 --- etc/cinder/rootwrap.d/volume.filters | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etc/cinder/rootwrap.d/volume.filters b/etc/cinder/rootwrap.d/volume.filters index a36649d2b..45a1e29cd 100644 --- a/etc/cinder/rootwrap.d/volume.filters +++ b/etc/cinder/rootwrap.d/volume.filters @@ -37,3 +37,11 @@ dmsetup_usr: CommandFilter, /usr/sbin/dmsetup, root ln: CommandFilter, /bin/ln, root qemu-img: CommandFilter, /usr/bin/qemu-img, root env: CommandFilter, /usr/bin/env, root + +# cinder/volume/nfs.py +stat: CommandFilter, /usr/bin/stat, root +mount: CommandFilter, /bin/mount, root +df: CommandFilter, /bin/df, root +truncate: CommandFilter, /usr/bin/truncate, root +chmod: CommandFilter, /bin/chmod, root +rm: CommandFilter, /bin/rm, root -- 2.45.2