mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
crtools: make pid parameter optional for open_image_ro()
Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
90376f2286
commit
f659f64247
@@ -106,7 +106,7 @@ extern void close_image_dir(void);
|
||||
|
||||
int open_image(int type, unsigned long flags, ...);
|
||||
#define open_image_ro(type, ...) open_image(type, O_RDONLY, ##__VA_ARGS__)
|
||||
extern int open_image_ro_nocheck(const char *fmt, int pid);
|
||||
extern int open_image_ro_nocheck(const char *fmt, ...);
|
||||
|
||||
#define LAST_PID_PATH "/proc/sys/kernel/ns_last_pid"
|
||||
#define LAST_PID_PERM 0666
|
||||
|
Reference in New Issue
Block a user