2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-29 13:28:27 +00:00
Andrey Vagin cbb6b2da3d PROT_WRITE isn't need for a mapping of a file with MAP_SHARED
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>
2011-12-02 15:43:48 +04:00
2011-11-29 16:37:43 +04:00
2011-09-29 16:04:04 +04:00
2011-11-30 23:33:28 +04:00
2011-09-23 12:00:45 +04:00
2011-11-22 16:48:57 +04:00
2011-11-13 13:07:00 +04:00
2011-12-01 18:26:35 +04:00
2011-09-23 12:00:45 +04:00
2011-12-01 11:16:37 +04:00
2011-11-22 14:36:00 +04:00
2011-11-30 22:04:29 +04:00

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
No description provided
Readme 81 MiB
Languages
C 86%
Python 6.1%
Java 2.6%
Shell 2.6%
Makefile 2%
Other 0.7%