[CRIU] [PATCH 00/10] ns procfs handling, v6
Cyrill Gorcunov
gorcunov at openvz.org
Mon May 20 05:30:13 EDT 2013
Hi, here is a small update on ns series. Please take
a look. The changes from previous one are
- fill_fdlink does not assign link pointer, it's up
to a caller, since we provide link from the stack
while the fd_parms from one level up stack, which
finally may lead to access out of stack area (iow
it's too dangerous hack to live with)
- generate_ns_id remains almost untouched, except I
moved out descriptor lookup procedure to be used
on its own
Cyrill Gorcunov (10):
files: Add missing type declaration in FD_PARMS_INIT
dump: Add missing FD_PARMS_INIT assignments
files: Add ability to use read link in dump_one_reg_file
ns: Extend ns_desc to carry the length of the ns name
ns: Add lookup_ns_id helper
ns: Add check_ns_proc helper
files: Add test for a link being referred to namespace
protobuf: Prepare scaffolds for procfs NS entries
ns: Add c/r for /proc/$pid/ns/$ids references
test: zdtm -- Add proc-self test
cr-dump.c | 1 +
cr-restore.c | 3 +
cr-show.c | 6 ++
files-reg.c | 25 ++---
files.c | 34 ++++++-
image.c | 1 +
include/crtools.h | 2 +
include/files.h | 13 ++-
include/magic.h | 1 +
include/namespaces.h | 20 ++++
include/protobuf.h | 1 +
ipc_ns.c | 5 +-
mount.c | 5 +-
namespaces.c | 204 ++++++++++++++++++++++++++++++++++++--
net.c | 5 +-
protobuf.c | 2 +
protobuf/Makefile | 1 +
protobuf/fdinfo.proto | 1 +
protobuf/ns.proto | 6 ++
test/zdtm/live/static/Makefile | 1 +
test/zdtm/live/static/proc-self.c | 79 +++++++++++++++
uts_ns.c | 5 +-
22 files changed, 380 insertions(+), 41 deletions(-)
create mode 100644 protobuf/ns.proto
create mode 100644 test/zdtm/live/static/proc-self.c
--
1.8.1.4
More information about the CRIU
mailing list