Bug 147466

Summary: Policy for Mailman too strict about temporary files
Product: [Fedora] Fedora Reporter: Alberto Barbati <abarbati>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 3CC: djuran
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
URL: http://www.mail-archive.com/mailman-users@python.org/msg29980.html
Whiteboard:
Fixed In Version: RHBA-2005-251 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-07 18:11:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alberto Barbati 2005-02-08 10:16:17 UTC
Description of problem:
Mailman is not able to create temporary files when accessed through
the web interface because of a too strict SELinux policy. This fact
disallows certain features, such as importing a list a members.

Version-Release number of selected component (if applicable):
selinux-policy-targeted-1.17.30-2.75
mailman-2.1.5-26
python-2.3.4-13.1
httpd-2.0.52-3.1

How reproducible:
Always

Steps to Reproduce:
1. Go to Mailman web interface
2. Add a few members to a list   

Actual Results:  The operation will fail with a python tracedump. The
most relevant message is the following:

IOError: [Errno 2] No usable temporary directory found in ['/tmp',
'/var/tmp', '/usr/tmp', '/usr/lib/mailman/cgi-bin']

Expected Results:  The operation should succeed without errors.

Additional info:

A quick workaround is to add these two lines to
/etc/selinux/targeted/src/policy/domains/misc/local.te

allow mailman_cgi_t tmp_t:dir rw_dir_perms;
allow mailman_cgi_t tmp_t:file create_file_perms;

and then do a "make reload"

This bug is probably related with bug #146890.

Comment 1 Daniel Walsh 2005-02-09 15:12:18 UTC
Fixed in selinux-policy-targeted-1.17.30-2.80

Comment 2 David Juran 2005-06-01 13:04:09 UTC
I see this issue on RHEL4 with selinux-policy-targeted-1.17.30-2.52.1 and
mailman-2.1.5-33.rhel4 as well.

Comment 3 Daniel Walsh 2005-06-02 12:03:35 UTC
Please update the the u1 policy files in 
ftp://people.redhat.com/dwalsh/SELinux/RHEL4/u1/

These should fix your problems.


Comment 4 David Juran 2005-06-07 12:20:22 UTC
Yes, selinux-policy-targeted-1.17.30-2.88 solves the problem (-:

Comment 5 Tim Powers 2005-06-09 13:06:17 UTC
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.

http://rhn.redhat.com/errata/RHBA-2005-251.html