Spivoxity / obc-3

Oxford Oberon-2 compiler
38 stars 7 forks source link

JIT doesn't work in SELinux #11

Closed Spivoxity closed 5 years ago

Spivoxity commented 5 years ago

Building on Fedora with SELinux enabled ends with the message

mprotect failed: Permission denied

This happens because the JIT tries to make memory pages that are simultaneously writable and executable, and SELinux doesn't allow that.

Spivoxity commented 5 years ago

There are ways of avoiding this problem, as documented in this Firefox issue:

https://bugzilla.mozilla.org/show_bug.cgi?id=506693

But it's not really worth all the trouble. Options are to disable SELinux entirely, or disable it for the executable that's installed as /usr/local/lib/obc/obxj .