Bug 907273 - SELinux is preventing /usr/bin/perl from read, open access on the file /usr/sbin/mdadm.
Summary: SELinux is preventing /usr/bin/perl from read, open access on the file /usr/s...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:67e916fb2d7f5a171ae1ec2fc0e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-04 02:18 UTC by Ian Pilcher
Modified: 2013-02-11 04:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-11 04:56:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ian Pilcher 2013-02-04 02:18:34 UTC
Description of problem:
Logwatch cron job?
SELinux is preventing /usr/bin/perl from read, open access on the file /usr/sbin/mdadm.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that perl should be allowed read open access on the mdadm file 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 perl /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:logwatch_t:s0-s0:c0.c1023
Target Context                system_u:object_r:mdadm_exec_t:s0
Target Objects                /usr/sbin/mdadm [ file ]
Source                        perl
Source Path                   /usr/bin/perl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           perl-5.16.2-237.fc18.x86_64
Target RPM Packages           mdadm-3.2.6-12.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-73.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.4-204.fc18.x86_64 #1 SMP Wed
                              Jan 23 16:44:29 UTC 2013 x86_64 x86_64
Alert Count                   6
First Seen                    2013-02-03 03:15:04 CST
Last Seen                     2013-02-03 03:15:04 CST
Local ID                      5f767167-5351-4591-837e-0c0725a391e1

Raw Audit Messages
type=AVC msg=audit(1359882904.920:926): avc:  denied  { read open } for  pid=10883 comm="perl" path="/usr/sbin/mdadm" dev="dm-0" ino=1712187 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mdadm_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1359882904.920:926): arch=x86_64 syscall=execve success=no exit=EACCES a0=7fff48e27454 a1=b71ab0 a2=b6e140 a3=8 items=0 ppid=10873 pid=10883 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=84 tty=(none) comm=perl exe=/usr/bin/perl subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null)

Hash: perl,logwatch_t,mdadm_exec_t,file,read,open

audit2allow

#============= logwatch_t ==============
allow logwatch_t mdadm_exec_t:file { read open };

audit2allow -R

#============= logwatch_t ==============
allow logwatch_t mdadm_exec_t:file { read open };


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.4-204.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-02-04 11:35:08 UTC
Fixed in selinux-policy-3.11.1-75.fc18.noarch

Comment 2 Fedora Update System 2013-02-05 09:24:29 UTC
selinux-policy-3.11.1-76.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-76.fc18

Comment 3 Fedora Update System 2013-02-08 02:36:59 UTC
Package selinux-policy-3.11.1-76.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-76.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-2101/selinux-policy-3.11.1-76.fc18
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-02-11 04:56:06 UTC
selinux-policy-3.11.1-76.fc18 has been pushed to the Fedora 18 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.