Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/c/criu.c')
-rw-r--r--lib/c/criu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/c/criu.c b/lib/c/criu.c
index 8171f7a12..fc8159999 100644
--- a/lib/c/criu.c
+++ b/lib/c/criu.c
@@ -566,6 +566,17 @@ void criu_set_skip_file_rwx_check(bool skip_file_rwx_check)
criu_local_set_skip_file_rwx_check(global_opts, skip_file_rwx_check);
}
+void criu_local_set_unprivileged(criu_opts *opts, bool unprivileged)
+{
+ opts->rpc->has_unprivileged = true;
+ opts->rpc->unprivileged = unprivileged;
+}
+
+void criu_set_unprivileged(bool unprivileged)
+{
+ criu_local_set_unprivileged(global_opts, unprivileged);
+}
+
void criu_local_set_orphan_pts_master(criu_opts *opts, bool orphan_pts_master)
{
opts->rpc->has_orphan_pts_master = true;