Skip to content
Snippets Groups Projects
Commit fef34333 authored by Eric Blake's avatar Eric Blake Committed by Daniel P. Berrangé
Browse files

CVE-2013-6456: Avoid unsafe use of /proc/$PID/root in LXC shutdown/reboot code

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 Reco
<recoverym4n@gmail.com> at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732394



Signed-off-by: Eric Blake's avatarEric Blake <eblake@redhat.com>
(cherry picked from commit aebbcdd3)
parent 72e0e071
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment