Re: Check for wxneeded option?

2016-09-07 Thread Karel Gardas
On Wed, Sep 7, 2016 at 8:22 PM, Theo de Raadt wrote: [...] > Almost immediately after 6.0 unlocked, 6.0-current moved back to new > harsher semantics. That gives the ports guys the right model for > pushing harder with labelling executables. Progress sometimes takes > a few

Re: Check for wxneeded option?

2016-09-07 Thread Theo de Raadt
>Now, just out of curiosity with regard to java: I get a "/bsd: >java(46091): mprotect W^X violation" message when I use it on >6.0-release (on a filesystem mounted with wxallowed), it's not linked >with the wxneeded option, and it still works. How is that possible? >Doesn't that contradict the

Re: Check for wxneeded option?

2016-09-07 Thread Philippe Meunier
Stuart Henderson wrote: >Java was not linked with the wxneeded linker option in 6.0. Okay, I tried with another program that I know does require the wxneeded linker option and indeed 'readelf -l' then shows OPENBSD_WXNEED. So my original question had indeed been answered, I was just mistakenly

Re: Check for wxneeded option?

2016-09-06 Thread Stuart Henderson
On 2016-09-06, Philippe Meunier wrote: > Theo de Raadt wrote: >>It is probably staring you in the face. > > Okay, I assume this requires -current then? I'm using 6.0-release on > i386 and I don't see it: > > $ readelf -l /usr/local/jdk-1.8.0/bin/java | egrep -i wx > $ > >

Re: Check for wxneeded option?

2016-09-06 Thread Philippe Meunier
Theo de Raadt wrote: >It is probably staring you in the face. Okay, I assume this requires -current then? I'm using 6.0-release on i386 and I don't see it: $ readelf -l /usr/local/jdk-1.8.0/bin/java | egrep -i wx $ (yes, I know that java was linked with wxneeded (I get an "mprotect W^X

Re: Check for wxneeded option?

2016-09-06 Thread Theo de Raadt
> David Coppa wrote: > >readelf -l /path/to/executable > It is probably staring you in the face. Unfortunately readelf truncates the long name OPENBSD_WXNEED 0x 0x 0x 0x 0xE8 That is if

Re: Check for wxneeded option?

2016-09-06 Thread Philippe Meunier
David Coppa wrote: >readelf -l /path/to/executable Well, thanks, but... what should I look for in the output, exactly? Philippe

Re: Check for wxneeded option?

2016-09-05 Thread David Coppa
Il 6 settembre 2016 07:28:40 CEST, Philippe Meunier ha scritto: >Hello, > >How does one check whether an existing program has been linked using >the wxneeded option or not? > >I tried to play with objdump -x but I don't know what to look for in >the output... Any help?

Check for wxneeded option?

2016-09-05 Thread Philippe Meunier
Hello, How does one check whether an existing program has been linked using the wxneeded option or not? I tried to play with objdump -x but I don't know what to look for in the output... Any help? Thank you. Cheers, Philippe