[CRIU] [PATCH 1/2] pipes: Restore file params on received pipes

Cyrill Gorcunov gorcunov at openvz.org
Wed May 30 13:06:24 EDT 2012


While've been poking file_fown test case I've
found that flags on pipes are not restored properly.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pipes.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pipes.c b/pipes.c
index 85f4bd7..26111c8 100644
--- a/pipes.c
+++ b/pipes.c
@@ -206,7 +206,7 @@ static int recv_pipe_fd(struct pipe_info *pi)
 	fd = open(path, pi->pe.flags);
 	close(tmp);
 
-	if (restore_fown(fd, &pi->pe.fown))
+	if (rst_file_params(fd, &pi->pe.fown, pi->pe.flags))
 		return -1;
 
 	return fd;
-- 
1.7.7.6



More information about the CRIU mailing list