mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
img: Get rid of open_image_ro helper
O_RSTR flag should be used instead for regular open_image Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
8
ipc_ns.c
8
ipc_ns.c
@@ -600,7 +600,7 @@ static int prepare_ipc_sem(int pid)
|
||||
int fd, ret;
|
||||
|
||||
pr_info("Restoring IPC semaphores sets\n");
|
||||
fd = open_image_ro(CR_FD_IPCNS_SEM, pid);
|
||||
fd = open_image(CR_FD_IPCNS_SEM, O_RSTR, pid);
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
|
||||
@@ -733,7 +733,7 @@ static int prepare_ipc_msg(int pid)
|
||||
int fd, ret;
|
||||
|
||||
pr_info("Restoring IPC message queues\n");
|
||||
fd = open_image_ro(CR_FD_IPCNS_MSG, pid);
|
||||
fd = open_image(CR_FD_IPCNS_MSG, O_RSTR, pid);
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
|
||||
@@ -843,7 +843,7 @@ static int prepare_ipc_shm(int pid)
|
||||
int fd, ret;
|
||||
|
||||
pr_info("Restoring IPC shared memory\n");
|
||||
fd = open_image_ro(CR_FD_IPCNS_SHM, pid);
|
||||
fd = open_image(CR_FD_IPCNS_SHM, O_RSTR, pid);
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
|
||||
@@ -881,7 +881,7 @@ static int prepare_ipc_var(int pid)
|
||||
IpcVarEntry *var;
|
||||
|
||||
pr_info("Restoring IPC variables\n");
|
||||
fd = open_image_ro(CR_FD_IPCNS_VAR, pid);
|
||||
fd = open_image(CR_FD_IPCNS_VAR, O_RSTR, pid);
|
||||
if (fd < 0)
|
||||
return -1;
|
||||
|
||||
|
Reference in New Issue
Block a user