diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-08-18 13:05:48 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-08-18 13:05:48 +0200 |
commit | 23972f4244f7609658c2a17f85508d50e4739990 (patch) | |
tree | ecc7b9895abf0c193cae5bf2deb6dcdfe8b77c04 /test/loopy3.service | |
parent | c7dab73a5fa6e775813765fe925caaa7c4e549fa (diff) |
memfd: map unsealed files as MAP_SHARED
We need to map sealed files as MAP_PRIVATE so far as the kernel treats
MAP_SHARED as writable mapping (you can run mprotect(PROT_WRITE) at any
time on those). However, unsealed files must be mapped as MAP_SHARED.
Otherwise, we never end up writing to the real file.
Diffstat (limited to 'test/loopy3.service')
0 files changed, 0 insertions, 0 deletions