From e1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 5 Aug 2018 10:58:02 -0400 Subject: mdso_create_output(): mmap conformance: fd must be opened with read permission. --- src/helper/mdso_create_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/mdso_create_output.c b/src/helper/mdso_create_output.c index d508cc3..9d95d10 100644 --- a/src/helper/mdso_create_output.c +++ b/src/helper/mdso_create_output.c @@ -26,7 +26,7 @@ static int mdso_create_output( fddst = mdso_driver_fddst(dctx); if ((fdout = openat(fddst,name, - O_CREAT|O_TRUNC|O_WRONLY|O_NOCTTY|O_NOFOLLOW, + O_CREAT|O_TRUNC|O_RDWR|O_NOCTTY|O_NOFOLLOW, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH)) < 0) return MDSO_SYSTEM_ERROR(dctx); -- cgit v1.2.3