RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 681264 - Config file on wrong place
Summary: Config file on wrong place
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mailman
Version: 6.0
Hardware: All
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 683763
TreeView+ depends on / blocked
 
Reported: 2011-03-01 15:46 UTC by Juraj Marko
Modified: 2015-09-01 03:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 683763 (view as bug list)
Environment:
Last Closed: 2012-07-10 10:35:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Juraj Marko 2011-03-01 15:46:37 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 1 RHEL Program Management 2011-03-01 15:58:54 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. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 2 Jan Kaluža 2011-03-14 16:09:23 UTC
I've tried to write a patch for this bug and unfortunately "ln -s /usr/lib/mailman/Mailman/mm_cfg.py /etc/mailman/mm_cfg.py" won't fix this issue, because python tries to create .pyc/.pyo even for symlinks.

So the only thing we can fix by suggested change is that config file won't be located in /usr/lib filesystem, but AVC denials will be still there.

Comment 6 RHEL Program Management 2012-07-10 10:35:44 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.


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