criu/include
Pavel Emelyanov b386751697 sockets: Rework unix sockets onto fdinfo scheme
This is a big change, yes. Dump unix sockets in the same manner
as all the other files are done now. A few notes however.

1. We explicitly drop names for connected stream sockets. This is
   done to avoid conflicts with names -- accepted sockets share their
   names with the listening parent. This can be done later by binding
   a socket to a name, them renaming it to some temporary uniq one
   and at the very very end renaming some back to original.

2. Interconnected sockets are restored via socketpair() call. This is
   correct, but names are dropped. Need to bind() sockets after this
   (yes, this can be done), but for this we need to implement the trick
   with renames described before.

3. FD for socket queues is constantly re-opened not to resolve fd
   conflicts. Need to use service fds engine for this later.

4. Some code cleanup is still required, yes (will follow shortly).

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-04-06 19:27:08 +04:00
..
atomic.h Gather futex helpers into lock.h 2011-12-26 23:54:18 +04:00
bitops.h restore: Add mutexes via futex syscall and order threads creation 2011-11-18 16:09:01 +04:00
compiler.h files: Use sys_kcmp to find file descriptor duplicates v4 2012-02-28 19:13:47 +04:00
crtools.h sockets: Rework unix sockets onto fdinfo scheme 2012-04-06 19:27:08 +04:00
file-ids.h file-ids: Enlighten ID generation and storage 2012-03-25 20:58:19 +04:00
files.h pipes: add functions to restore pipes 2012-04-05 21:23:48 +04:00
image.h sockets: Rework unix sockets onto fdinfo scheme 2012-04-06 19:27:08 +04:00
inet_diag.h Trivial whitespace cleanup 2012-01-30 21:29:42 +04:00
ipc_ns.h show: Introduce ->show callback for fdset 2012-03-27 12:01:14 +04:00
libnetlink.h net: Define named constant for nlmsg_seq 2011-12-27 20:13:18 +04:00
list.h list: Cleanup spaces/tabs mess 2012-02-01 14:38:49 +04:00
lock.h lock: Restore ability to abort on futex waiting 2012-04-05 14:07:39 +04:00
log.h log: log-engine slight redesign 2012-03-02 01:05:43 +04:00
memcpy_64.h Add builtin_memcpy helper 2012-03-29 15:14:06 +04:00
namespaces.h show: Introduce ->show callback for fdset 2012-03-27 12:01:14 +04:00
parasite-syscall.h sockets: Dump socket queus without parasite 2012-03-29 16:44:15 +04:00
parasite.h parasite, restorer: Cleanup ld scripts 2012-04-02 22:43:22 +04:00
proc_parse.h proc: Add missing includes into proc_parse.h 2012-04-05 16:39:15 +04:00
processor-flags.h Add processor-flags.h 2012-02-14 17:18:08 +04:00
ptrace.h dump/restore: Rework final-state switch 2012-03-01 19:31:20 +04:00
rbtree.h rb: Drop rb_attach_node 2012-03-28 20:28:29 +04:00
restorer-log.h logfd: Distinguish functions which do setup logdf 2012-03-02 01:05:43 +04:00
restorer.h restore: Don't write to vma image on restore 2012-03-27 18:42:18 +04:00
sockets.h sockets: Rework unix sockets onto fdinfo scheme 2012-04-06 19:27:08 +04:00
syscall-codes.h parasite: support sockets queues 2012-02-29 17:42:30 +04:00
syscall.h dump: Restart seize in case reparent occurred 2012-03-01 19:31:21 +04:00
sysctl.h show: Use pr_msg for showing contents on console 2012-03-02 11:12:59 +04:00
types.h types: Add SCM limits 2012-03-29 15:14:10 +04:00
unix_diag.h sockets: Update unix_diag.h 2012-01-10 17:26:50 +04:00
util-net.h util-net: Itroduce send_fds/recv_fds routines 2012-03-29 15:14:23 +04:00
util.h util: Remove dead code 2012-03-22 21:17:44 +04:00
uts_ns.h show: Introduce ->show callback for fdset 2012-03-27 12:01:14 +04:00