Gentoo Archives: gentoo-hardened

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

Replies

Subject Author
Re: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod? Dave Strydom <strydom.dave@×××××.com>
Re: [gentoo-hardened] mysql 4.1 requires shlib_t:file execmod? pageexec@××××××××.hu