Bug 252185 - Mailman init script prevents proper SELinux domain transitions
Mailman init script prevents proper SELinux domain transitions
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mailman (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Tomas Smetana
Depends On: 350511
Blocks: 242672
  Show dependency treegraph
Reported: 2007-08-14 12:16 EDT by Aleksander Adamowski
Modified: 2008-05-21 12:04 EDT (History)
0 users

See Also:
Fixed In Version: RHBA-2008-0416
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-05-21 12:04:12 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
A patch to get rid of direct interpreter invocation in mailman init script (1001 bytes, patch)
2007-08-14 12:16 EDT, Aleksander Adamowski
no flags Details | Diff
AVC messages (4.02 KB, text/plain)
2007-10-23 03:59 EDT, Tomas Smetana
no flags Details

  None (edit)
Description Aleksander Adamowski 2007-08-14 12:16:41 EDT
Description of problem:

The init script that launches mailman qrunners uses the form "interpreter
script" instead of "script" to launch the mailmanctl script. Because of this
proper SELinux domain transitions cannot occur and the Mailman qrunner ends up
in initrc_t domain.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Start mailman with SELinux in permissive mode.
2. Execute "ps xuwa -Z | grep qrunner"
Actual results:
The processes run in initrc_t domain.

Expected results:
The processes should run in mailman_mail_t domain.

Additional info:
A patch against the init script is attached.
Comment 1 Aleksander Adamowski 2007-08-14 12:16:41 EDT
Created attachment 161280 [details]
A patch to get rid of direct interpreter invocation in mailman init script
Comment 2 Tomas Smetana 2007-10-23 03:58:22 EDT
I got some AVC messages after applying the patch.  This means that we might need
to update also the policy and need to test this for some time.  Maybe we should
start with this in Fedora first.
Comment 3 Tomas Smetana 2007-10-23 03:59:44 EDT
Created attachment 234841 [details]
AVC messages
Comment 5 Tomas Smetana 2007-10-24 10:31:19 EDT
I've filled the bug #350511 -- the selinux-policy might need to be changed as well.
Comment 13 errata-xmlrpc 2008-05-21 12:04:12 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.