Joel Carnat <[email protected]> writes:

> Hi,
>
> Is there a way to test binaries in /usr/local to see if they need
> "wxallowed" or would be working without? I mean something smarter than just
> disabling wxallowed, run the binaries for some time and see what happens :)

There is a specific program header in the binary.

python3 has the header (it needs wxallowed):

$ readelf -l /usr/local/bin/python3.12 | grep OPENBSD_WXNEED
  OPENBSD_WXNEED 0x0000000000000000 0x0000000000000000 0x0000000000000000
$


latex hasn't the header (it doesn't need it):

$ readelf -l /usr/local/bin/latex | grep OPENBSD_WXNEED
$

Regards.
-- 
Sebastien Marie

Reply via email to