Thanks all for replying. The key part was 1) in Todds’ answer. Mounted /home with wxallowed already. Just needed to ’cp’ binary into it.
Br > 25 apr. 2017 kl. 22:43 skrev Todd C. Miller <[email protected]>: > > On Tue, 25 Apr 2017 16:49:36 +0200, Maxim Bourmistrov wrote: > >> Any work around for this one? >> >> Mount with wxallowed not working. > > Two things are required: > > 1) The binary must be on a file system mounted with the wxallowed > option. > > 2) The binary must have the OPENBSD_WXNEED type in the ELF header. > > You can check for #2 by running "readelf -l /usr/local/bin/node". > The output should include a section similar to the following. > If you don't see OPENBSD_WXNEED in there, that is the problem > and you probably need to update your packages to the 6.1 versions. > > Program Headers: > Type Offset VirtAddr PhysAddr > FileSiz MemSiz Flags Align > PHDR 0x0000000000000040 0x0000000000000040 0x0000000000000040 > 0x0000000000000348 0x0000000000000348 R E 8 > INTERP 0x0000000000af82be 0x0000000000bf82be 0x0000000000bf82be > 0x0000000000000013 0x0000000000000013 R 1 > [Requesting program interpreter: /usr/libexec/ld.so] > LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000 > 0x0000000000af82be 0x0000000000af82be R E 100000 > LOAD 0x0000000000af82be 0x0000000000bf82be 0x0000000000bf82be > 0x0000000000bfe59a 0x0000000000bfe59a R 100000 > LOAD 0x00000000016f6910 0x00000000018f6910 0x00000000018f6910 > 0x00000000000a5af0 0x00000000000b6e00 RW 100000 > DYNAMIC 0x000000000177dda8 0x000000000197dda8 0x000000000197dda8 > 0x00000000000001b0 0x00000000000001b0 RW 8 > NOTE 0x0000000000af82d4 0x0000000000bf82d4 0x0000000000bf82d4 > 0x0000000000000018 0x0000000000000018 R 4 > GNU_EH_FRAME 0x0000000001533634 0x0000000001633634 0x0000000001633634 > 0x0000000000049dac 0x0000000000049dac R 4 > OPENBSD_WXNEED 0x0000000000000000 0x0000000000000000 0x0000000000000000 > 0x0000000000000000 0x0000000000000000 E 8 > OPENBSD_RANDOM 0x00000000016f6910 0x00000000018f6910 0x00000000018f6910 > 0x0000000000000008 0x0000000000000008 RW 8 > GNU_RELRO 0x00000000016f6910 0x00000000018f6910 0x00000000018f6910 > 0x000000000008f6f0 0x000000000008f6f0 R 1 >

