Gentoo Archives: gentoo-hardened

From: Antoine Martin <antoine@××××××××××.uk>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod?
Date: Sat, 22 Oct 2005 16:35:10
Message-Id: 1129998780.31615.65.camel@localhost.localdomain
In Reply to: Re: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod? by Dave Strydom
1 On Sat, 2005-10-22 at 16:39 +0200, Dave Strydom wrote:
2 > try run this:
3 >
4 > revdep-rebuild --soname libmysqlclient.so.12
5 ^libmysqlclient.so.12^libmysqlclient.so.14, right?
6
7 This does a:
8 emerge --oneshot --nodeps =dev-db/mysql-4.1.14
9 =dev-perl/DBD-mysql-2.9007 =mail-mta/postfix-2.1.5-r2
10 =net-dns/pdns-2.9.18
11
12 Which failed during the installation phase of postfix, with the same
13 message as before..
14 Then I switched to non-enforcing mode, rebuilt as above and now it's ok.
15 No idea why...
16
17 Antoine
18
19
20 >
21 > On 10/22/05, Antoine Martin <antoine@××××××××××.uk> wrote:
22 > Hi,
23 >
24 > I've upgraded a (gentoo x86 selinux) system from MySQL 4.0 to
25 > 4.1, and
26 > since then some of the software that uses mysql-libs refuse to
27 > run
28 > without 'shlib_t:file execmod'.
29 >
30 > ie: when starting postfix (built and rebuilt with mysql
31 > support):
32 > postfix: error while loading shared
33 > libraries: /usr/lib/libmysqlclient.so.14: cannot restore
34 > segment prot
35 > after reloc: Permission denied
36 >
37 > And here is the audit message:
38 > [ 3159.289877] audit(1130082418.254:1085):
39 > avc: denied { execmod } for
40 > pid=7905 comm="postfix" name="libmysqlclient.so.14.0.0 "
41 > dev=md3
42 > ino=84506 scontext=root:sysadm_r:postfix_postdrop_t
43 > tcontext=system_u:object_r:shlib_t tclass=file
44 >
45 > But other software does not needed it (mysql client, pdns,
46 > etc) even
47 > though they are linked to the same library file...
48 > What gives?
49 >
50 > Thanks
51 > Antoine
52 >
53 > --
54 > gentoo-hardened@g.o mailing list
55 >
56 >
57
58 --
59 gentoo-hardened@g.o mailing list

Replies

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