non-root: enable non-root checkpoint/restore

This commit enables checkpointing and restoring of applications as
non-root.

First goal was to enable checkpoint and restore of the env00 and
pthread00 test case.

This uses the information from opts.unprivileged and opts.cap_eff to
skip certain code paths which do not work as non-root.

Co-authored-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
This commit is contained in:
Younes Manton 2022-08-12 11:56:53 -07:00 committed by Andrei Vagin
parent ce01f70d94
commit 6a30c7d1ed
18 changed files with 194 additions and 53 deletions

View file

@ -139,6 +139,7 @@ message criu_opts {
optional criu_network_lock_method network_lock = 64 [default = IPTABLES];
optional bool mntns_compat_mode = 65;
optional bool skip_file_rwx_check = 66;
optional bool unprivileged = 67;
/* optional bool check_mounts = 128; */
}