[CRIU] [PATCH] img: Open images for dump in O_WRONLY mode
Pavel Emelyanov
xemul at parallels.com
Thu Mar 5 13:00:59 PST 2015
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
include/image.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/image.h b/include/image.h
index 53c2998..7ab0bfa 100644
--- a/include/image.h
+++ b/include/image.h
@@ -120,7 +120,7 @@ extern bool ns_per_id;
#define O_OPT (O_PATH)
#define O_NOBUF (O_DIRECT)
-#define O_DUMP (O_RDWR | O_CREAT | O_TRUNC)
+#define O_DUMP (O_WRONLY | O_CREAT | O_TRUNC)
#define O_SHOW (O_RDONLY | O_NOBUF)
#define O_RSTR (O_RDONLY)
--
1.8.4.2
More information about the CRIU
mailing list