Bug 468038 - SELinux prevents mailman to store messages to archives (Fedora/RHEL)
SELinux prevents mailman to store messages to archives (Fedora/RHEL)
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-10-22 10:32 EDT by KaiGai Kohei
Modified: 2008-10-22 11:58 EDT (History)
3 users (show)

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

Attachments (Terms of Use)

  None (edit)
Description KaiGai Kohei 2008-10-22 10:32:42 EDT
Description of problem:
SELinux prevents mailman to store massages to archive directories.

The raw audit file says:

type=AVC msg=audit(1224684021.817:220348): avc:  denied  { write }
    for  pid=7365 comm="python" name="mokeke.mbox" dev=sda6 ino=3107532
    tcontext=unconfined_u:object_r:mailman_archive_t:s0 tclass=dir

The default security policy allows mailman_cgi_t and mailman_queue_t to manage mailman_archive_t (/var/lib/mailman/archives/*), but mailman_mail_t is disallowed.

It was reported on Japanese SELinux community at first.
He got troubled on the latest RHEL5, and I reproduced same problem on Fedora rawhide.

Could you add the following policies on the next updates?

allow mailman_mail_t mailman_archive_t:dir manage_dir_perms;
allow mailman_mail_t mailman_archive_t:file manage_file_perms;
allow mailman_mail_t mailman_archive_t:lnk_file manage_lnk_file_perms;

Version-Release number of selected component (if applicable):
- selinux-policy-devel-2.4.6-137.1.el5_2 (Reporter's environment)
- selinux-policy-3.5.7-1.fc10.noarch (My environment)

How reproducible:

Steps to Reproduce:
1. setup mailman
2. send a message to a list
3. confirm audit logs and an empty archive directory
Comment 1 Daniel Walsh 2008-10-22 11:58:21 EDT
Fixed in selinux-policy-2.4.6-172.el5 
( U3 policy currently available on http://people.redhat.com/dwalsh/SELinux/RHEL5)
Fixed in selinux-policy-3.5.13-3.fc10

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