diff options
author | midipix <writeonce@midipix.org> | 2018-08-05 10:58:02 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-08-05 10:58:02 -0400 |
commit | e1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2 (patch) | |
tree | 6e331ccb0746b837d9102adeba9ea5b983574f53 /src/helper | |
parent | 63b5a5c9a59b60f72e8bc0313fe48192efb06a04 (diff) | |
download | mdso-e1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2.tar.bz2 mdso-e1fe0cd5a9b0fd78f7ab7561252e46cc57e4aac2.tar.xz |
mdso_create_output(): mmap conformance: fd must be opened with read permission.
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/mdso_create_output.c | 2 |
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); |