summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-08-05 10:58:02 -0400
committermidipix <writeonce@midipix.org>2018-08-05 10:58:02 -0400
commite1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2 (patch)
tree6e331ccb0746b837d9102adeba9ea5b983574f53 /src
parent63b5a5c9a59b60f72e8bc0313fe48192efb06a04 (diff)
downloadmdso-e1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2.tar.bz2
mdso-e1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2.tar.xz
mdso_create_output(): mmap conformance: fd must be opened with read permission.
Diffstat (limited to 'src')
-rw-r--r--src/helper/mdso_create_output.c2
1 files changed, 1 insertions, 1 deletions
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);