mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
shm: memfd_create: fallback to not using MFD_NOEXEC_SEAL
MFD_NOEXEC_SEAL was introduced in linux 6.3. Kernels before that will *reject* memfd_create() calls that set it. This caused foot to exit (i.e. not start at all), when compiled on linux >= 6.3, but run on linux < 6.3. We _do_ want to use MFD_NOEXEC_SEAL, since a) our memory mapped really shouldn't be executable, and b) to silence a warning on linux >= 6.3. To handle all cases, first try *with* MFD_NOEXEC_SEAL. If that fails with EINVAL, retry *without* it. Closes #1514
This commit is contained in:
parent
7d7b48f104
commit
c006ac3a07
2 changed files with 21 additions and 5 deletions
|
|
@ -53,6 +53,11 @@
|
|||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
* Foot not starting on linux kernels before 6.3 ([#1514][1514]).
|
||||
|
||||
[1514]: https://codeberg.org/dnkl/foot/issues/1514
|
||||
|
||||
|
||||
### Security
|
||||
### Contributors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue