]> code.ossystems Code Review - openembedded-core.git/commit
pseudo: Fix problem where pseudo could kill a container init
authorMark Hatle <mark.hatle@windriver.com>
Thu, 22 Sep 2016 21:37:20 +0000 (16:37 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Sep 2016 17:06:10 +0000 (18:06 +0100)
commitf6f13b049e8683d2a2af3e120ba979b58f9a7d9a
treee801d0c5c48a114af10b13d6787980b18e2ddf36
parent3b6494fad2b8b65e0d52cda0cdf500e93c72823a
pseudo: Fix problem where pseudo could kill a container init

In a heavily loaded container, the child process might not started
before the parent process had terminated.  The child process attempts to
signal the parent with SIGUSR1.  If the parent had terminated, the
parent becomes PID 1, which is generally init.  When it signaled pid 1,
it caused the docker mini-init to terminate.

This doesn't happen in a traditional system, as systemd/sysvinit is
protected to only root users can signal it.

[YOCTO #10324]

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/pseudo/files/0001-Don-t-send-SIGUSR1-to-init.patch [new file with mode: 0644]
meta/recipes-devtools/pseudo/pseudo_1.8.1.bb
meta/recipes-devtools/pseudo/pseudo_git.bb