[Devel] [PATCH rh7] signal/ve: allow to send signal from another ve namespace

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 18 04:49:57 PST 2015


And do we need the following patch after sig_ve_ignored() is removed?


commit 5bd842976fb9d014452287bdadc9d592aabe688b
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date:   Thu Nov 13 18:10:09 2014 +0400

     ve/signal: Fix NULL dereference in sig_ve_ignored


--
Best regards,

Konstantin Khorenko,
Virtuozzo Linux Kernel Team

On 11/16/2015 03:00 PM, Stanislav Kinsburskiy wrote:
>
>
> 16.11.2015 12:44, Andrey Ryabinin пишет:
>> On 11/12/2015 08:07 PM, Stanislav Kinsburskiу wrote:
>>> 12 нояб. 2015 г. 17:51 пользователь Andrey Wagin <avagin at gmail.com> написал:
>>>>
>>>>
>>>> [root at fc22-vm ~]# unshare --fork -p
>>>> [root at fc22-vm ~]# kill -9 1
>>>> [root at fc22-vm ~]# kill -9 1
>>>> [root at fc22-vm ~]# kill -9 1
>>>> [root at fc22-vm ~]# kill -9 1
>>>> [root at fc22-vm ~]# kill -USR1 1
>>>> [root at fc22-vm ~]# kill -USR1 1
>>>> [root at fc22-vm ~]#
>>>>
>>>    Ok then. Probably, this patch should be ported to rhel6 as well.
>>>
>> Probably not, simply removing sig_ve_ignored() doesn't work (it allows to kill init from container).
>> In rhel6 creation of namespace's init handled via proc_pid_ns_attach_init() which doesn't set SIGNAL_UNKILLABLE.
>> In 3.10 we use CLONE_NEWPID, and fork sets SIGNAL_UNKILLALBLE flag for container's init.
> Ok, I got it. Thanks.
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://lists.openvz.org/mailman/listinfo/devel
>
>


More information about the Devel mailing list