Bug 890887 - SELinux is preventing /usr/bin/perl from 'read' accesses on the directory /etc/MailScanner/conf.d.
Summary: SELinux is preventing /usr/bin/perl from 'read' accesses on the directory /et...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:58961f608aba538c4200a79b9c0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-31 00:53 UTC by Chris Schanzle
Modified: 2013-01-07 03:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-07 03:59:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-31 00:53 UTC, Chris Schanzle
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-31 00:53 UTC, Chris Schanzle
no flags Details

Description Chris Schanzle 2012-12-31 00:53:26 UTC
Description of problem:
upgrade of f16->f17 x86_64
mailscanner upgraded to current mailscanner-4.84.5-3.noarch
mailscanner won't start


Additional info:
libreport version: 2.0.18
kernel:         3.6.10-2.fc17.x86_64

description:
:SELinux is preventing /usr/bin/perl from 'read' accesses on the directory /etc/MailScanner/conf.d.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that perl should be allowed read access on the conf.d directory by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep MailScanner /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:mscan_t:s0
:Target Context                system_u:object_r:mscan_etc_t:s0
:Target Objects                /etc/MailScanner/conf.d [ dir ]
:Source                        MailScanner
:Source Path                   /usr/bin/perl
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           perl-5.14.3-218.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.10-2.fc17.x86_64 #1 SMP Tue
:                              Dec 11 18:07:34 UTC 2012 x86_64 x86_64
:Alert Count                   49
:First Seen                    2012-12-30 19:41:29 EST
:Last Seen                     2012-12-30 19:41:51 EST
:Local ID                      546bb92d-c3bc-4b2f-97ad-626f4b4f81f8
:
:Raw Audit Messages
:type=AVC msg=audit(1356914511.28:1023): avc:  denied  { read } for  pid=12697 comm=4D61696C5363616E6E65723A207374 name="conf.d" dev="dm-1" ino=395188 scontext=system_u:system_r:mscan_t:s0 tcontext=system_u:object_r:mscan_etc_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1356914511.28:1023): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffffffffffff9c a1=7ffff5ffff80 a2=90800 a3=0 items=0 ppid=12436 pid=12697 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=4D61696C5363616E6E65723A207374 exe=/usr/bin/perl subj=system_u:system_r:mscan_t:s0 key=(null)
:
:Hash: MailScanner,mscan_t,mscan_etc_t,dir,read
:
:audit2allow
:
:#============= mscan_t ==============
:allow mscan_t mscan_etc_t:dir read;
:
:audit2allow -R
:
:#============= mscan_t ==============
:allow mscan_t mscan_etc_t:dir read;
:

Comment 1 Chris Schanzle 2012-12-31 00:53:32 UTC
Created attachment 670617 [details]
File: type

Comment 2 Chris Schanzle 2012-12-31 00:53:34 UTC
Created attachment 670618 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-01-02 12:41:42 UTC
Added.

commit 6be1f50ddce2f8152995262e3cf4e35f0574bad6
Author: Miroslav Grepl <mgrepl>
Date:   Wed Jan 2 13:40:34 2013 +0100

    Allow mscan to read /etc/MailScanner/conf.d directory

Comment 4 Fedora Update System 2013-01-03 13:07:10 UTC
selinux-policy-3.10.0-166.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17

Comment 5 Fedora Update System 2013-01-05 06:39:28 UTC
Package selinux-policy-3.10.0-166.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-166.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-20544/selinux-policy-3.10.0-166.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-01-07 03:59:17 UTC
selinux-policy-3.10.0-166.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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