summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorThierry Carrez <thierry@openstack.org>2012-01-23 11:17:34 +0100
committerThierry Carrez <thierry@openstack.org>2012-01-23 13:59:42 +0100
commitbfdb9b1f5e197a0d2f76f7d32835c521e5b30d6f (patch)
tree314616f0d32576bf076d2c4d950cbf8ef682b111 /bin
parente3451ac3098adf64480d07d4c29ecf7412afb88c (diff)
Fix environment passing in DnsmasqFilter
Fix environment passing in DnsmasqFilter so that dnsmasq can be run as root through nova-rootwrap. Fixes bug 919275. Change-Id: I2e78d92b9af4ddea9c0f1c5ddbe2d55fb672310e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nova-rootwrap3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/nova-rootwrap b/bin/nova-rootwrap
index 80bb55ca8..0434aed3a 100755
--- a/bin/nova-rootwrap
+++ b/bin/nova-rootwrap
@@ -65,7 +65,8 @@ if __name__ == '__main__':
obj = subprocess.Popen(filtermatch.get_command(userargs),
stdin=sys.stdin,
stdout=sys.stdout,
- stderr=sys.stderr)
+ stderr=sys.stderr,
+ env=filtermatch.get_environment(userargs))
sys.exit(obj.returncode)
print "Unauthorized command: %s" % ' '.join(userargs)