From 1cf8ce50e46c7afdf1c2f299988fa35cb47157e6 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Mon, 12 May 2014 23:05:42 -0300 Subject: [PATCH] command/sudoers: Fix whitelisting to take GH-277 into account --- lib/vagrant-lxc/command/sudoers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/command/sudoers.rb b/lib/vagrant-lxc/command/sudoers.rb index eb648c0..311358e 100644 --- a/lib/vagrant-lxc/command/sudoers.rb +++ b/lib/vagrant-lxc/command/sudoers.rb @@ -142,7 +142,7 @@ Whitelist.add '/bin/chown', /\\A\\d+:\\d+\\z/, %r{\\A/tmp/.*/rootfs\.tar\.gz\\z} Whitelist.add '/usr/bin/lxc-version' Whitelist.add '/usr/bin/lxc-ls' Whitelist.add '/usr/bin/lxc-info', '--name', /.*/ -Whitelist.add '/usr/bin/lxc-create', '--template', /.*/, '--name', /.*/, '**' +Whitelist.add '/usr/bin/lxc-create', '-B', /.*/, '--template', /.*/, '--name', /.*/, '**' Whitelist.add '/usr/bin/lxc-destroy', '--name', /.*/ Whitelist.add '/usr/bin/lxc-start', '-d', '--name', /.*/, '**' Whitelist.add '/usr/bin/lxc-stop', '--name', /.*/