Bug 754115 - mailman status causes AVC denial
Summary: mailman status causes AVC denial
Keywords:
Status: CLOSED DUPLICATE of bug 923340
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mailman
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-15 12:52 UTC by Petr Sklenar
Modified: 2014-02-14 09:24 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-14 09:24:30 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Petr Sklenar 2011-11-15 12:52:47 UTC
Description of problem:
mailman status causes AVC denial

Version-Release number of selected component (if applicable):
# rpm -q mailman selinux-policy
mailman-2.1.12-17.el6.i686
selinux-policy-3.7.19-126.el6.noarch


How reproducible:
deterministic

Steps to Reproduce:
1, restorecon -R /usr/lib/mailman/Mailman

2, ls -ladZ /usr/lib/mailman/Mailman
drwxr-xr-x. root root system_u:object_r:lib_t:s0       /usr/lib/mailman/Mailman

3, /etc/init.d/mailman status
type=AVC msg=audit(1321361298.795:494097): avc:  denied  { write } for  pid=17267 comm="mailmanctl" name="Mailman" dev=dm-0 ino=286551 scontext=unconfined_u:system_r:mailman_mail_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=dir
mailman is stopped

4, find / -mount  -inum 286551
/usr/lib/mailman/Mailman

  
Actual results:
type=AVC msg=audit(1321361298.795:494097): avc:  denied  { write } for  pid=17267 comm="mailmanctl" name="Mailman" dev=dm-0 ino=286551 scontext=unconfined_u:system_r:mailman_mail_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=di

Expected results:
no avc denial

Additional info:

Comment 2 Daniel Walsh 2011-11-15 14:05:05 UTC
Is there a python file in /usr/lib/mailman/Mailman?  Why would mailman have to write to a file that should be read/only?

Comment 3 Petr Sklenar 2011-11-15 14:34:21 UTC
(In reply to comment #2)
> Is there a python file in /usr/lib/mailman/Mailman?  Why would mailman have to
> write to a file that should be read/only?

yes,
its full of py files:
ls -1 /usr/lib/mailman/Mailman/*py | wc -l
30

denial appears during calling mailman status. But status should not write to any file.
ccing mailman's developer

Comment 4 Jan Kaluža 2011-11-15 20:42:31 UTC
Isn't it the same problem as in https://bugzilla.redhat.com/show_bug.cgi?id=681265 ? If yes, I'm open to suggestions...

Comment 5 Jan Kaluža 2011-11-15 20:43:56 UTC
Or better this RHEL6 clone: https://bugzilla.redhat.com/show_bug.cgi?id=681264

Comment 6 Daniel Walsh 2011-11-16 14:23:16 UTC
Petr, you can compile the py files by running them through python on pychecker, and that will stop the AVC.s 

Basically what is happening and as soon as an updated python script gets executed, python attempts to compile it and write the compiled code in the same directory as the py files, this is causing the AVC's.  The app should work fine, but potentially slower.  I am not sure we have a good fix for this.

Comment 7 Daniel Walsh 2011-11-16 14:24:05 UTC
Dave, do you have any suggestions?

Comment 10 Suzanne Logcher 2012-02-14 23:20:22 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 11 RHEL Program Management 2012-09-18 18:31:19 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 unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2013-10-14 00:55:07 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 unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 13 Jan Kaluža 2014-02-14 09:24:30 UTC
I'm closing this bug as duplicate of Bug 923340. I know this bug is older than Bug 923340, but Bug 923340 contains solution to this problem in description and is reported by a customer.

*** This bug has been marked as a duplicate of bug 923340 ***


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