mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 13:28:27 +00:00
A file destriptor is opened for read-only and mmap with PROT_WRITE fails. We don't need PROT_WRITE for this case, because a file contains up to date data. lr-x------ 1 root root 64 Dec 1 19:10 20 -> /usr/lib64/gconv/gconv-modules.cache pos: 0 flags: 0100000 41155 mmap(0x7f2c3d6cf000, 28672, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_FIXED, 20, 0 <unfinished ...> 41155 <... mmap resumed> ) = -1 EACCES (Permission denied) Signed-off-by: Andrey Vagin <avagin@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
crtools ======= An utility to checkpoint/restore tasks. Some code snippets are borrowed from - Linux kernel (http://kernel.org/) - git (http://git-scm.com/) - kvm-tools (https://github.com/penberg/linux-kvm) - ptrace-parasite (https://code.google.com/p/ptrace-parasite/) Many thanks to these projects. Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt) Kernel patching =============== To have crtools up and running either 1) use patches from kernel/ directory 2) or clone git://github.com/cyrillos/linux-2.6.git and switch to branch "crtools". Note these patches are guaranteed to be up to date only with major release of crtool. If you're testing development version -- make sure you're applying series from kernel/ directory. It's based on Linux | commit 1ea6b8f48918282bdca0b32a34095504ee65bab5 | Author: Linus Torvalds <torvalds@linux-foundation.org> | Date: Mon Nov 7 16:16:02 2011 -0800 | | Linux 3.2-rc1 The following patches are already in -mm tree fs-proc-Make-proc_get_link-to-use-dentry fs-proc-Introduce-the-proc-pid-map_files-directory procfs-introduce-the-proc-pid-map_files-directory-checkpatch sysfs-add-kernel.ns_last_pid
Description
Languages
C
86%
Python
6.1%
Java
2.6%
Shell
2.6%
Makefile
2%
Other
0.7%