[libvirt] [PATCH 3/8] Avoid unsafe use of /proc/$PID/root in LXC shutdown/reboot code

2014-02-17 Thread Daniel P. Berrange
From: Eric Blake ebl...@redhat.com Use helper virProcessRunInMountNamespace in lxcDomainShutdownFlags and lxcDomainReboot. Otherwise, a malicious guest could use symlinks to force the host to manipulate the wrong file in the host's namespace. Idea by Dan Berrange, based on an initial report by

Re: [libvirt] [PATCH 3/8] Avoid unsafe use of /proc/$PID/root in LXC shutdown/reboot code

2014-02-17 Thread Eric Blake
On 02/17/2014 09:38 AM, Daniel P. Berrange wrote: From: Eric Blake ebl...@redhat.com Use helper virProcessRunInMountNamespace in lxcDomainShutdownFlags and lxcDomainReboot. Otherwise, a malicious guest could use symlinks to force the host to manipulate the wrong file in the host's