[CRIU] [PATCH 0/2] Add initial support for raw sockets

Cyrill Gorcunov gorcunov at openvz.org
Wed Nov 16 02:59:44 PST 2016


Here is an initial support for raw sockets. We've hit a problem
in vz7 test-suite where containers do ask kernel which ipset
version is supported via raw socket (iproute2/tc/em_ipset.c:get_version).
If at moment the container start requesting the kernel we're
doing checkpoint procedure, the test will fail because we don't
have any support for raw sockets (to be fair, it's not a big
problem because one can simply wait a second and repeat the
checkpoint which will success then). So lets add initial
support. The code likely to be enhanced in future.

Cyrill Gorcunov (2):
  sk-inet: Add initial support for raw sockets
  test: Add simple socket-raw test

 criu/include/sk-inet.h           | 12 ++++++
 criu/sk-inet.c                   | 58 +++++++++++++++++++--------
 criu/sockets.c                   | 35 ++++++++++++++++
 images/sk-inet.proto             |  2 +
 test/zdtm/static/Makefile        |  1 +
 test/zdtm/static/socket-raw.c    | 86 ++++++++++++++++++++++++++++++++++++++++
 test/zdtm/static/socket-raw.desc |  1 +
 7 files changed, 179 insertions(+), 16 deletions(-)
 create mode 100644 test/zdtm/static/socket-raw.c
 create mode 100644 test/zdtm/static/socket-raw.desc

-- 
2.7.4



More information about the CRIU mailing list