In FreeBSD 13.0-p3, I've enabled w^x by adding to /etc/sysctl.conf:
Now in my apache logs I see:
How do I exempt just PHP? I tried:
but even after a reboot I still get that logged. Perhaps there is a another executable that needs exempting?
Thanks. Sean.
Code:
kern.elf32.allow_wx=0
kern.elf64.allow_wx=0
Code:
"PHP Warning: preg_match_all(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory"
elfctl -e +wxneeded /usr/local/bin/php
but even after a reboot I still get that logged. Perhaps there is a another executable that needs exempting?
Thanks. Sean.