Gentoo Archives: gentoo-hardened

From: Ned Ludd <solar@g.o>
To: Andrei Ivanov <andrei.ivanov@××××.ro>
Cc: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] mysql problems
Date: Sun, 12 Sep 2004 04:00:51
Message-Id: 1094961615.15248.79.camel@simple
In Reply to: Re: [gentoo-hardened] mysql problems by Andrei Ivanov
1 file a bug.
2
3 On Sat, 2004-09-11 at 23:48, Andrei Ivanov wrote:
4 > I'm sorry but I did read the help, but as I've compiled the whole system with
5 > the pic and pie flags enabled I thought I wouldn't have any problems.
6 >
7 > chpax -pEmrxsv /usr/bin/resolveip
8 >
9 > ----[ chpax 0.7 : Current flags for /usr/bin/resolveip (pEmrxs) ]----
10 >
11 > * Paging based PAGE_EXEC : disabled
12 > * Trampolines : emulated
13 > * mprotect() : not restricted
14 > * mmap() base : not randomized
15 > * ET_EXEC base : not randomized
16 > * Segmentation based PAGE_EXEC : disabled
17 >
18 > resolveip
19 > resolveip: error while loading shared libraries: cannot make segment writable
20 > for relocation: Permission denied
21 >
22 > So nothing's changed.
23 >
24 > The same for gen_lex_hash.
25 >
26 > ldd gen_lex_hash
27 > libpthread.so.0 => /lib/libpthread.so.0 (0x20607000)
28 > libz.so.1 => /lib/libz.so.1 (0x20619000)
29 > libcrypt.so.1 => /lib/libcrypt.so.1 (0x2062e000)
30 > libnsl.so.1 => /lib/libnsl.so.1 (0x2065c000)
31 > libstdc++.so.5 =>
32 > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x20672000)
33 > libm.so.6 => /lib/libm.so.6 (0x207bf000)
34 > libgcc_s.so.1 =>
35 > /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x207e2000)
36 > libc.so.6 => /lib/libc.so.6 (0x207ee000)
37 > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x205ea000)
38 >
39 >
40 > On Sat, 11 Sep 2004, Ned Ludd wrote:
41 >
42 > > I assume your using PaX in your kernel.
43 > >
44 > > You probably enabled NOELFRELOCS in the kernel .config without
45 > > reading the config help.
46 > >
47 > > On Sat, 2004-09-11 at 21:18, Andrei Ivanov wrote:
48 > >> Hello,
49 > >> I'm having problems with mysql:
50 > >>
51 > >> resolveip: error while loading shared libraries: cannot make segment
52 > >> writable for relocation: Permission denied
53 > >>
54 > >> ldd `which resolveip`
55 > >> libstdc++.so.5 =>
56 > >> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5 (0x23d21000)
57 > >> libgcc_s.so.1 =>
58 > >> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1 (0x23e6e000)
59 > >> libc.so.6 => /lib/libc.so.6 (0x23e81000)
60 > >> libpthread.so.0 => /lib/libpthread.so.0 (0x23f99000)
61 > >> libz.so.1 => /lib/libz.so.1 (0x23fab000)
62 > >> libcrypt.so.1 => /lib/libcrypt.so.1 (0x23fbf000)
63 > >> libnsl.so.1 => /lib/libnsl.so.1 (0x23fed000)
64 > >> libm.so.6 => /lib/libm.so.6 (0x24003000)
65 > >> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x23d0a000)
66 > >>
67 > >
68 > >> ./gen_lex_hash > lex_hash.h
69 > >> ./gen_lex_hash: error while loading shared libraries: cannot make segment
70 > >> writable for relocation: Permission denied
71 > >
72 > > [snip crap]
73 > >
74 > >> What can I do?
75 > >
76 > > If the above is the case then disable the option or chpax/paxctl -m said
77 > > program.
78 > >
79 > >
80 > >> --
81 > >> gentoo-hardened@g.o mailing list
82 > > --
83 > > Ned Ludd <solar@g.o>
84 > > Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer
85 > >
86 >
87 >
88 > --
89 > gentoo-hardened@g.o mailing list
90 --
91 Ned Ludd <solar@g.o>
92 Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature