2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 05:48:05 +00:00
Filipe Brandenburger 6cf2906b0a zdtm: add new dumpable02 test to check that dumpable flag set to 0 or 2 works
This confirms that the fix to handle dumpable flag set to 2 still works after
restore.

To force dumpable flag set to 0 or 2 (whatever the fs.suid_dumpable is set to),
chmod the test binary to 0111 (executable, but not readable) and execv() it
while running as non-root.  The kernel will unset the dumpable flag to prevent
a core dump or ptrace to giving the user access to the pages of the binary
(which are supposedly not readable by that user.)

Tested:
- # test/zdtm.sh static/dumpable02
  Test: zdtm/live/static/dumpable02, Result: PASS
- # test/zdtm.sh ns/static/dumpable02
  Test: zdtm/live/static/dumpable02, Result: PASS
- Used -DDEBUG to confirm the value of the dumpable flag was 0 or 2 to match
  the fs.suid_dumpable sysctl in the tests (both in and out of namespaces.)
- Confirmed that the test fails if the commit that fixes handling of dumpable
  flag with value 2 is reverted and the fs.suid_dumpable sysctl is set to 2.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2014-06-24 22:44:39 +04:00
2014-06-20 16:35:52 +04:00
2014-05-14 17:34:41 +04:00
2012-03-25 23:31:20 +04:00
2014-05-27 23:48:06 +04:00
2013-04-01 12:29:06 +04:00
2014-05-27 23:48:06 +04:00
2014-01-14 09:33:19 +04:00
2012-07-30 13:52:37 +04:00
2013-04-30 20:17:55 +04:00
2014-05-27 23:48:06 +04:00
2014-04-22 12:51:15 +04:00
2014-02-04 20:54:25 +04:00
2014-06-18 13:34:36 +04:00
2014-05-27 23:48:06 +04:00
2014-06-20 16:35:51 +04:00
2014-06-20 16:35:52 +04:00
2013-11-06 18:18:12 +04:00
2013-12-12 10:00:45 +04:00
2013-12-12 09:58:50 +04:00
2013-12-12 09:58:50 +04:00
2013-12-12 10:03:07 +04:00
2013-12-12 10:03:07 +04:00
2013-11-06 18:18:12 +04:00
2014-04-23 02:51:11 +04:00
2014-02-04 14:03:10 +04:00
2013-11-29 15:36:07 +04:00
2013-04-05 08:23:17 +04:00
2013-11-06 18:18:12 +04:00

criu
====

An utility to checkpoint/restore tasks. Using this tool, you can
freeze a running application (or part of it) and checkpoint it to
a hard drive as a collection of files. You can then use the files
to restore and run the application from the point it was frozen
at. The distinctive feature of the CRIU project is that it is
mainly implemented in user space.

The project home is at http://criu.org

Pages worth starting with are
* Kernel configuration, compilation, etc: http://criu.org/Installation
* A simple example of usage: http://criu.org/Simple_loop
* More sophisticated example with graphical app: http://criu.org/VNC
Description
No description provided
Readme 81 MiB
Languages
C 86%
Python 6.1%
Java 2.6%
Shell 2.6%
Makefile 2%
Other 0.7%