Bug 681265

Summary: Config file on wrong place
Product: Red Hat Enterprise Linux 5 Reporter: Juraj Marko <jmarko>
Component: mailmanAssignee: Jan Kaluža <jkaluza>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 5.6CC: nlevinki, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-07 10:40:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Juraj Marko 2011-03-01 15:46:44 UTC
Description of problem:

Files mm_cfg.py, mm_cfg.pyc mm_cfg.pyo are located in /usr/lib/mailman/Mailman/. But this file is a config file which should be modified. 

This modification is denied by selinux:
type=SYSCALL msg=audit(1298975286.335:1096098): arch=40000003 syscall=5 success=yes exit=4 a0=bffb4c8b a1=82c1 a2=81a4 a3=bffb5ceb items=0 ppid=9591 pid=9594 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1807 comm="mailmanctl" exe="/usr/bin/python" subj=unconfined_u:system_r:mailman_mail_t:s0 key=(null)
type=AVC msg=audit(1298975286.335:1096098): avc:  denied  { write } for  pid=9594 comm="mailmanctl" name="mm_cfg.pyc" dev=sda2 ino=2479444 scontext=unconfined_u:system_r:mailman_mail_t:s0 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file
type=AVC msg=audit(1298975286.335:1096098): avc:  denied  { create } for  pid=9594 comm="mailmanctl" name="mm_cfg.pyc" scontext=unconfined_u:system_r:mailman_mail_t:s0 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file
type=AVC msg=audit(1298975286.335:1096098): avc:  denied  { add_name } for  pid=9594 comm="mailmanctl" name="mm_cfg.pyc" scontext=unconfined_u:system_r:mailman_mail_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=dir

and the file system /usr can be read only on some arch.

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


How reproducible:
100% but the AVC only if config was changed

Steps to Reproduce:
1. install mailman
2. # ll /usr/lib/mailman/Mailman/mm_cfg.py*
-rw-r--r--. 1 root mailman 3880 Feb 24 05:40 /usr/lib/mailman/Mailman/mm_cfg.py
-rw-r--r--. 2 root mailman 1180 Jun 21  2010 /usr/lib/mailman/Mailman/mm_cfg.pyc
-rw-r--r--. 1 root mailman 3864 Jun 21  2010 /usr/lib/mailman/Mailman/mm_cfg.py.dist
-rw-r--r--. 2 root mailman 1180 Jun 21  2010 /usr/lib/mailman/Mailman/mm_cfg.pyo
  
Actual results:
Config file in /usr

Expected results:
Config file in /etc and onli link in /usr

Additional info:
Same bug on rhel 5 and 6

Comment 2 RHEL Program Management 2011-09-23 00:23:35 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 3 Jan Kaluža 2012-03-07 10:40:54 UTC
Since there is no acceptable way to fix it (See Bug 681264) yet and therefore this bug can't be fixed in RHEL-5.9.0, I'm closing it as WONTFIX.