]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: make container's init process session leader
authorKaterina Koukiou <k.koukiou@googlemail.com>
Thu, 21 Jul 2016 15:37:24 +0000 (15:37 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Jul 2016 08:40:10 +0000 (09:40 +0100)
commitf96cd890a8fd847e7a1073240f06cbd8361b7582
tree9331d365f7a44d1ddc2300526de27121ffa85f54
parent815d98ac0bb8a4b48a412e026cb6465309e4043c
lxc: make container's init process session leader

This patch forces container's init process, to become a session leader,
that is its session ID is made the same as its process ID.
That might seem unnecessary in general, but if we want to checkpoint a
container with CRIU, which is needed for container migration,
we must ensure that the SID of each process inside the container points
to a process that lives in the same PID namespace as the container.
Therefore, we force that the session leader is the init.

Signed-off-by: Katerina Koukiou <k.koukiou@gmail.com>
src/lxc/lxc_container.c