• Pavel Emelyanov's avatar
    sockets: Rework unix sockets onto fdinfo scheme · b3867516
    Pavel Emelyanov authored
    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: 's avatarPavel Emelyanov <xemul@parallels.com>
    b3867516
Name
Last commit
Last update
Documentation Loading commit data...
include Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...
README Loading commit data...
cr-check.c Loading commit data...
cr-dump.c Loading commit data...
cr-restore.c Loading commit data...
cr-show.c Loading commit data...
crtools.c Loading commit data...
file-ids.c Loading commit data...
files.c Loading commit data...
gen-offsets.sh Loading commit data...
ipc_ns.c Loading commit data...
libnetlink.c Loading commit data...
log.c Loading commit data...
namespaces.c Loading commit data...
parasite-syscall.c Loading commit data...
parasite.c Loading commit data...
parasite.lds.S Loading commit data...
pipes.c Loading commit data...
proc_parse.c Loading commit data...
ptrace.c Loading commit data...
rbtree.c Loading commit data...
restorer-log.c Loading commit data...
restorer.c Loading commit data...
restorer.lds.S Loading commit data...
sockets.c Loading commit data...
sysctl.c Loading commit data...
util-net.c Loading commit data...
util.c Loading commit data...
uts_ns.c Loading commit data...