Red Hat Bugzilla – Bug 147466
Policy for Mailman too strict about temporary files
Last modified: 2007-11-30 17:10:59 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):
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.
A quick workaround is to add these two lines to
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.
Fixed in selinux-policy-targeted-1.17.30-2.80
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.
Please update the the u1 policy files in
These should fix your problems.
Yes, selinux-policy-targeted-1.17.30-2.88 solves the problem (-:
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.