Bug 147466 - Policy for Mailman too strict about temporary files
Policy for Mailman too strict about temporary files
Status: CLOSED ERRATA
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted (Show other bugs)
3
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Daniel Walsh
http://www.mail-archive.com/mailman-u...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-08 05:16 EST by Alberto Barbati
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2005-251
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-07 14:11:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Alberto Barbati 2005-02-08 05:16:17 EST
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 10:12:18 EST
Fixed in selinux-policy-targeted-1.17.30-2.80
Comment 2 David Juran 2005-06-01 09:04:09 EDT
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 08:03:35 EDT
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 08:20:22 EDT
Yes, selinux-policy-targeted-1.17.30-2.88 solves the problem (-:
Comment 5 Tim Powers 2005-06-09 09:06:17 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.

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

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