[CRIU] [PATCH 0/4 RFC] add ability to set callbacks for external sockets

Andrey Vagin avagin at openvz.org
Sat Nov 30 09:43:52 PST 2013


*** This is only for your comments. Don't commit this series ***

We don't know a state behind an external socket. It depends on logic
of the program, which handles this socket.

The patch adds ability to load a library with callbacks for dumping
and restoring external sockets. In a future we can add callbacks
for other external object.

A library can have:
* two functions cr_init and cr_fini, which are called
  on loading and unloading.
* two callbacks cr_dump_unix_sk and cr_restore_unix_sk for dumping and
  restoring unix sockets. If a callback can not handle a socket, it
  must return CR_SK_SKIP.

The main question is, what kind of information should be transferred in
these callbacks.

-- 
1.8.3.1



More information about the CRIU mailing list