[libvirt] [PATCH 4/8] Avoid unsafe use of /proc/$PID/root in LXC disk hotplug
Eric Blake
eblake at redhat.com
Tue Feb 18 04:46:30 UTC 2014
On 02/17/2014 09:38 AM, Daniel P. Berrange wrote:
> Rewrite lxcDomainAttachDeviceDiskLive function to use the
> virProcessRunInMountNamespace helper. This avoids risk of
> a malicious guest replacing /dev with a absolute symlink,
> tricking the driver into changing the host OS filesystem.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/lxc/lxc_driver.c | 185 +++++++++++++++++++++++++++++++++++++++------------
> 1 file changed, 141 insertions(+), 44 deletions(-)
>
ACK
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140217/2568a9df/attachment-0001.sig>
More information about the libvir-list
mailing list