Gentoo Archives: gentoo-hardened

From: Dave Strydom <strydom.dave@×××××.com>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod?
Date: Sat, 22 Oct 2005 14:41:11
Message-Id: fc38b710510220739n1a56eccag7f6d430a74730ed0@mail.gmail.com
In Reply to: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod? by Antoine Martin
1 try run this:
2
3 revdep-rebuild --soname libmysqlclient.so.12
4
5 On 10/22/05, Antoine Martin <antoine@××××××××××.uk> wrote:
6 >
7 > Hi,
8 >
9 > I've upgraded a (gentoo x86 selinux) system from MySQL 4.0 to 4.1, and
10 > since then some of the software that uses mysql-libs refuse to run
11 > without 'shlib_t:file execmod'.
12 >
13 > ie: when starting postfix (built and rebuilt with mysql support):
14 > postfix: error while loading shared
15 > libraries: /usr/lib/libmysqlclient.so.14: cannot restore segment prot
16 > after reloc: Permission denied
17 >
18 > And here is the audit message:
19 > [ 3159.289877] audit(1130082418.254:1085): avc: denied { execmod } for
20 > pid=7905 comm="postfix" name="libmysqlclient.so.14.0.0" dev=md3
21 > ino=84506 scontext=root:sysadm_r:postfix_postdrop_t
22 > tcontext=system_u:object_r:shlib_t tclass=file
23 >
24 > But other software does not needed it (mysql client, pdns, etc) even
25 > though they are linked to the same library file...
26 > What gives?
27 >
28 > Thanks
29 > Antoine
30 >
31 > --
32 > gentoo-hardened@g.o mailing list
33 >
34 >

Replies

Subject Author
Re: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod? Antoine Martin <antoine@××××××××××.uk>