2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

cr: Support rlimits

Dump the with "new" prlimit syscall that works on arbitrary pid.

Restore is done in restorer _after_ mappings mixup and _before_
caps drop to make it set any max value.

The RLIM_INFINITY is handled explicitly to help future 64<->32
bits migration.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-01-10 20:08:38 +04:00
parent d2b3a26b2f
commit 748be83181
14 changed files with 127 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ enum {
CR_FD_ITIMERS,
CR_FD_CREDS,
CR_FD_FS,
CR_FD_RLIMIT,
_CR_FD_TASK_TO,
/*
@@ -154,6 +155,7 @@ void show_fown_cont(void *p);
void show_eventfds(int fd, struct cr_options *o);
void show_tty(int fd, struct cr_options *o);
void show_tty_info(int fd, struct cr_options *o);
void show_rlimit(int fd, struct cr_options *o);
int check_img_inventory(void);
int write_img_inventory(void);