criu/criu
Kirill Tkhai ef8ea19010 mnt: Remove useless closes in __mntns_get_root_fd()
1)Further mntns_set_root_fd() calls install_service_fd(),
which silently closes already open fd. So, kill close_service_fd()
and make __mntns_get_root_fd() atomical in ROOT_FD_OFF modifications.

2)close_pid_proc() is not need here, as it's about root_item's
/proc directory and __mntns_get_root_fd() actions don't act on it.

v4: New

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
2018-01-16 20:43:22 +03:00
..
arch pr_err: add \n where we miss them 2017-12-07 19:52:13 +03:00
include files: Do not close PROC_PID_FD_OFF sfd in prepare_fds() 2018-01-16 20:43:22 +03:00
pie parasite: remove restriction to a number of iovec-s 2017-11-30 01:36:14 +03:00
action-scripts.c tty: notify about orphan tty-s via rpc 2017-03-01 21:58:02 +03:00
aio.c compel: Move in parasite engine 2017-03-15 00:06:06 +03:00
autofs.c autofs: Add FD_TYPES__AUTOFS_PIPE type 2017-11-30 01:24:32 +03:00
bfd.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
bitmap.c common: Move in bit operation helpers 2016-11-03 00:13:04 +03:00
cgroup-props.c build: Move generated config.h into include/common/ 2017-11-23 20:23:23 +03:00
cgroup.c ns: Add alternative name for pid namespace 2017-11-30 01:28:55 +03:00
clone-noasan.c clone_noasan: Allow to create CLONE_VM|CLONE_VFORK processes 2017-11-30 01:24:32 +03:00
cr-check.c check/servise: use cached kdat values for features check 2017-11-30 01:34:50 +03:00
cr-dedup.c image-desc: Encode pagemap in unsigned long format 2017-11-23 20:23:13 +03:00
cr-dump.c pre_dump: Assign parasite pid only if it hasn't collected yet 2017-11-30 01:28:56 +03:00
cr-errno.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
cr-restore.c core: Init fdstore even earlier 2018-01-16 20:43:21 +03:00
cr-service.c service: allow to execute page-server as a child process 2017-11-23 20:23:23 +03:00
crtools.c crtools: also print the current kernel version 2017-11-30 01:36:15 +03:00
eventfd.c files: Move eventfd into files image 2017-08-09 18:51:40 +03:00
eventpoll.c files: Move epoll into files image 2017-08-09 18:51:40 +03:00
external.c mount: Make auto options into --external mnt 2016-11-03 18:15:03 +03:00
fault-injection.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
fdstore.c fdstore: add synchronization to protect a peek offset 2017-03-01 21:58:26 +03:00
fifo.c fifo: Generate unique ID for satellite regfile entry 2017-10-17 11:41:50 +03:00
file-ids.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
file-lock.c locks: Remove duplicated locks 2017-11-30 01:36:15 +03:00
files-ext.c fdinfo: Extract FdinfoEntry from dump_one_file 2017-10-17 11:41:50 +03:00
files-reg.c criu: Don't fail if ghost file has no parent dirs. 2017-12-15 21:54:58 +03:00
files.c files: Do not close PROC_PID_FD_OFF sfd in prepare_fds() 2018-01-16 20:43:22 +03:00
filesystems.c mount: make open_mountpoint handle overmouts properly 2017-12-26 21:11:45 +03:00
fsnotify.c fsnotify: open_handle -- Handle multiple mounts with same s_dev 2017-11-23 20:23:23 +03:00
image-desc.c proto: Add ns_entry description 2017-11-30 01:22:14 +03:00
image.c No \n in pr_perror 2017-11-30 01:22:15 +03:00
img-cache.c Merge img-remote and img-remote-proto 2017-11-30 01:29:44 +03:00
img-proxy.c Merge img-remote and img-remote-proto 2017-11-30 01:29:44 +03:00
img-remote.c Merge img-remote and img-remote-proto 2017-11-30 01:29:44 +03:00
ipc_ns.c ns: Add alternative name for pid namespace 2017-11-30 01:28:55 +03:00
irmap.c irmap: Duplicate handle memory when queueing for predump 2017-07-18 09:34:46 +03:00
kcmp-ids.c util: Include int.h (compilation fix) 2016-10-24 16:00:16 +03:00
kerndat.c kerndat: Check for /proc/[pid]/ns/pid_for_children_ns 2017-11-30 01:26:45 +03:00
libnetlink.c netlink: add nla_get_s32() 2017-11-30 01:22:15 +03:00
log.c restore: Use vpid in log_init_by_pid() instead of getpid() 2017-11-30 01:29:44 +03:00
lsm.c build: Move generated config.h into include/common/ 2017-11-23 20:23:23 +03:00
Makefile Add support for configuration files 2017-11-30 01:29:44 +03:00
Makefile.crtools Merge img-remote and img-remote-proto 2017-11-30 01:29:44 +03:00
Makefile.packages soccr: add support for half-closed sockets 2017-01-16 11:04:48 +03:00
mem.c Introducing the --check-only option 2017-11-30 01:18:53 +03:00
mount.c mnt: Remove useless closes in __mntns_get_root_fd() 2018-01-16 20:43:22 +03:00
namespaces.c ns: Make pid_ns helpers as children of criu main process 2017-11-30 01:31:19 +03:00
net.c pr_err: add \n where we miss them 2017-12-07 19:52:13 +03:00
netfilter.c netfilter: use ipv4 iptables rules to block IPv4-mapped IPv6 addresses 2017-11-30 01:36:15 +03:00
ns-common.c pid: Create pid_ns helpers 2017-11-30 01:24:30 +03:00
page-pipe.c debug_show_page_pipe: add PPB's pipe offset 2017-11-30 01:36:15 +03:00
page-xfer.c pr_err: add \n where we miss them 2017-12-07 19:52:13 +03:00
pagemap-cache.c common: Move compiler.h into 2016-11-03 00:13:03 +03:00
pagemap.c page-read: Warn about async read w/o completion cb 2017-11-30 01:29:45 +03:00
parasite-syscall.c pid: Pass thread pid to caller 2017-11-30 01:22:16 +03:00
path.c include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
pie-util-vdso-elf32.c vdso: fill compat symtab in CRIU 2017-03-15 00:09:52 +03:00
pie-util-vdso.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
pie-util.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
pipes.c pipe: dump all data from a pipe 2017-12-05 04:49:50 +03:00
plugin.c Use xstrdup whether possible 2016-11-12 11:06:01 +03:00
proc_parse.c locks: Remove duplicated locks 2017-11-30 01:36:15 +03:00
protobuf-desc.c proto: Add ns_entry description 2017-11-30 01:22:14 +03:00
protobuf.c pb: Add a helper to collect single entry 2017-08-09 18:51:39 +03:00
pstree.c pstree: allow shelljob to inherit sid from criu process again 2017-11-30 01:31:19 +03:00
rbtree.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
rst-malloc.c rst-malloc: Update deprecated MAP_ANON flag 2017-01-12 18:29:29 +03:00
seccomp.c build: Move generated config.h into include/common/ 2017-11-23 20:23:23 +03:00
seize.c dump: set pid->state for threads 2017-11-30 01:31:04 +03:00
shmem.c utils: Change open_fd_of_real_pid() to be open_fd_of_vpid() 2017-11-30 01:28:56 +03:00
sigframe.c criu: Fix compilation after prev patch(es) 2017-03-15 00:09:54 +03:00
signalfd.c files: Move signalfd into files image 2017-08-09 18:51:40 +03:00
sk-inet.c sk-inet: detect corked sockets by getting a proper sock opt 2017-12-15 09:14:03 +03:00
sk-netlink.c net: Add file_desc_ops::get_user_ns for sockets 2017-11-30 01:28:56 +03:00
sk-packet.c net: Add file_desc_ops::get_user_ns for sockets 2017-11-30 01:28:56 +03:00
sk-queue.c SCM: Dump and restore SCM_RIGHTs 2017-10-17 11:41:51 +03:00
sk-tcp.c check-only: fix network unlock in check-only mode 2017-11-30 01:28:57 +03:00
sk-unix.c net: Add file_desc_ops::get_user_ns for sockets 2017-11-30 01:28:56 +03:00
sockets.c ns: Implement setns_from_fdstore() for repeating code 2017-11-30 01:31:04 +03:00
stats.c stats: add counters for pipes and page_pipe_bufs 2017-11-23 20:23:14 +03:00
string.c build: Move everything criu related into criu directory 2016-02-15 15:32:45 +03:00
sysctl.c sysctl: surpress errors from open_proc 2017-05-10 04:19:25 +03:00
sysfs_parse.c log: Do not include criu-log when not needed 2016-10-24 16:00:17 +03:00
timerfd.c files: Move timerfd into files image 2017-08-09 18:51:40 +03:00
tty.c sfds: Kill SELF_STDIN_OFF via fdstore 2018-01-16 20:43:22 +03:00
tun.c net: create a list of all links 2017-11-30 01:22:16 +03:00
uffd.c lazy-pages: do not allow background fetch before restore is finished 2017-11-30 01:36:15 +03:00
util.c files: Do not close PROC_PID_FD_OFF sfd in prepare_fds() 2018-01-16 20:43:22 +03:00
uts_ns.c ns: Add alternative name for pid namespace 2017-11-30 01:28:55 +03:00
vdso-compat.c vdso: Exclude {vdso, vvar}_start from vdso_symtable 2017-09-21 00:49:10 +03:00
vdso.c vdso: Don't read pagemap or parse symtable under vdso_hint_reliable 2017-09-21 00:57:27 +03:00