[CRIU] [PATCH 0/3] tun: Check that net ns of tun device is dumped

Kirill Tkhai ktkhai at virtuozzo.com
Thu Mar 1 11:11:25 MSK 2018


On 28.02.2018 23:07, Andrei Vagin wrote:
> On Mon, Feb 19, 2018 at 03:15:53PM +0300, Kirill Tkhai wrote:
>> This patchset makes dump code to check, that net is related
>> to one of net namespaces, we already collected. If it's not,
>> dump will fail like we do that for plain sockets.
>>
>> This patchset requires patch "tun: Add ioctl() SIOCGSKNS cmd
>> to allow obtaining net ns of tun device" from net-next:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=f2780d6d74756bc1d7ba32ff3dd0de4afd7c7e1e
> 
> Could you add this patch on https://criu.org/Upstream_kernel_commits

Done.

>>
>> ---
>>
>> Kirill Tkhai (3):
>>       net: Extrack ioctl() call from kerndat_socket_netns()
>>       tun: Check tun has ioctl() cmd SIOCGSKNS
>>       tun: Check that net ns of tun device is dumped
>>
>>
>>  criu/include/kerndat.h |    1 +
>>  criu/include/net.h     |    1 +
>>  criu/include/tun.h     |    1 +
>>  criu/kerndat.c         |    3 +++
>>  criu/net.c             |   26 +++++++++++++++-----------
>>  criu/tun.c             |   23 +++++++++++++++++++++++
>>  6 files changed, 44 insertions(+), 11 deletions(-)
>>
>> --
>> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>


More information about the CRIU mailing list