diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-05-22 12:06:15 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-05-22 12:06:15 +0000 |
| commit | f64cc04fe6822d4efe27d85bebb9d46477be4815 (patch) | |
| tree | 6f0928ec25708ffd77eb48578714c8f1df7155a4 /scripts | |
| parent | changelog: wp-single-pixel-buffer-v1 (diff) | |
shm: minor optimization
Don't retry memfd_create() without MFD_NOEXEC_SEAL is 0.
The overall logic is this:
* Try memfd_create() with MFD_NOEXEC_SEAL
* If that fails (which it does, on older kernels), try without the flag
If compiling against an older kernel, or on a system that doesn't
support the noexec seal, MFD_NOEXEC_SEAL is 0.
In this case, there's little point in retrying memfd_create a second
time, with the exact same set of flags.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
