Bug 908285 - SELinux is preventing /usr/sbin/mdadm from 'read' accesses on the blk_file sr0.
Summary: SELinux is preventing /usr/sbin/mdadm from 'read' accesses on the blk_file sr0.
Keywords:
Status: CLOSED ERRATA
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:b1b4daf6ffc43e5ca5fb40b3a04...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-06 10:36 UTC by Koen Zagers
Modified: 2013-07-04 13:54 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-04 13:54:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2013-02-06 10:36 UTC, Koen Zagers
no flags Details
File: hashmarkername (14 bytes, text/plain)
2013-02-06 10:36 UTC, Koen Zagers
no flags Details

Description Koen Zagers 2013-02-06 10:36:38 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.7.3-101.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/mdadm from 'read' accesses on the blk_file sr0.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that mdadm should be allowed read access on the sr0 blk_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 mdadm /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:removable_device_t:s0
:Target Objects                sr0 [ blk_file ]
:Source                        mdadm
:Source Path                   /usr/sbin/mdadm
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           mdadm-3.2.6-7.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-166.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.7.3-101.fc17.x86_64 #1 SMP Fri
:                              Jan 18 17:40:57 UTC 2013 x86_64 x86_64
:Alert Count                   2
:First Seen                    2013-02-05 09:25:09 CET
:Last Seen                     2013-02-06 09:32:09 CET
:Local ID                      6f304a44-ec12-4277-be37-63ccec2e5929
:
:Raw Audit Messages
:type=AVC msg=audit(1360139529.87:142): avc:  denied  { read } for  pid=3337 comm="mdadm" name="sr0" dev="devtmpfs" ino=6859 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file
:
:
:type=AVC msg=audit(1360139529.87:142): avc:  denied  { open } for  pid=3337 comm="mdadm" path="/dev/sr0" dev="devtmpfs" ino=6859 scontext=system_u:system_r:logwatch_t:s0-s0:c0.c1023 tcontext=system_u:object_r:removable_device_t:s0 tclass=blk_file
:
:
:type=SYSCALL msg=audit(1360139529.87:142): arch=x86_64 syscall=open success=no exit=-123 a0=196b580 a1=4000 a2=a a3=0 items=0 ppid=3336 pid=3337 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=3 tty=(none) comm=mdadm exe=/usr/sbin/mdadm subj=system_u:system_r:logwatch_t:s0-s0:c0.c1023 key=(null)
:
:Hash: mdadm,logwatch_t,removable_device_t,blk_file,read
:
:audit2allow
:
:#============= logwatch_t ==============
:allow logwatch_t removable_device_t:blk_file { read open };
:
:audit2allow -R
:
:#============= logwatch_t ==============
:allow logwatch_t removable_device_t:blk_file { read open };
:

Comment 1 Koen Zagers 2013-02-06 10:36:43 UTC
Created attachment 693864 [details]
File: type

Comment 2 Koen Zagers 2013-02-06 10:36:45 UTC
Created attachment 693865 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2013-02-06 11:25:15 UTC
Fixed in selinux-policy-3.10.0-167.fc17.noarch

# yum update selinux-policy-targeted --enablerepo=updates-testing

Comment 4 Fedora End Of Life 2013-07-04 07:45:41 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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