]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - kernel/user_namespace.c
userns,pidns: Force thread group sharing, not signal handler sharing.
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 10 Aug 2015 23:25:44 +0000 (18:25 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 12 Aug 2015 19:55:28 +0000 (14:55 -0500)
commitfaf00da544045fdc1454f3b9e6d7f65c841de302
treee08a54d870374ea8e0d8421c39f4c90559fd4ab0
parent12c641ab8270f787dfcce08b5f20ce8b65008096
userns,pidns: Force thread group sharing, not signal handler sharing.

The code that places signals in signal queues computes the uids, gids,
and pids at the time the signals are enqueued.  Which means that tasks
that share signal queues must be in the same pid and user namespaces.

Sharing signal handlers is fine, but bizarre.

So make the code in fork and userns_install clearer by only testing
for what is functionally necessary.

Also update the comment in unshare about unsharing a user namespace to
be a little more explicit and make a little more sense.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/fork.c
kernel/user_namespace.c