Bug 919753 - SELinux is preventing /usr/bin/ksysguardd from 'read' accesses on the file mdstat.
Summary: SELinux is preventing /usr/bin/ksysguardd from 'read' accesses on the file md...
Keywords:
Status: CLOSED ERRATA
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:d2b3e60041f606c11e4b674ed9b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-09 22:36 UTC by Juan Orti Alcaine
Modified: 2013-03-14 03:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-14 03:01:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Juan Orti Alcaine 2013-03-09 22:36:47 UTC
Description of problem:
SELinux is preventing /usr/bin/ksysguardd from 'read' accesses on the file mdstat.

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

If cree que de manera predeterminada, ksysguardd debería permitir acceso read sobre  mdstat file.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso momentáneamente executando:
# grep ksysguardd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                xguest_u:xguest_r:xguest_t:s0
Target Context                system_u:object_r:proc_mdstat_t:s0
Target Objects                mdstat [ file ]
Source                        ksysguardd
Source Path                   /usr/bin/ksysguardd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ksysguardd-4.9.5-7.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-82.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.1-201.fc18.x86_64 #1 SMP Thu
                              Feb 28 19:23:08 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-03-09 20:40:59 CET
Last Seen                     2013-03-09 20:40:59 CET
Local ID                      c0b49bc4-96a8-435d-a951-0367fb329cf9

Raw Audit Messages
type=AVC msg=audit(1362858059.650:510): avc:  denied  { read } for  pid=14232 comm="ksysguardd" name="mdstat" dev="proc" ino=4026531973 scontext=xguest_u:xguest_r:xguest_t:s0 tcontext=system_u:object_r:proc_mdstat_t:s0 tclass=file


type=SYSCALL msg=audit(1362858059.650:510): arch=x86_64 syscall=open success=no exit=EACCES a0=41f665 a1=0 a2=e7cbe0 a3=10 items=0 ppid=14225 pid=14232 auid=1004 uid=1004 gid=1007 euid=1004 suid=1004 fsuid=1004 egid=1007 sgid=1007 fsgid=1007 ses=15 tty=(none) comm=ksysguardd exe=/usr/bin/ksysguardd subj=xguest_u:xguest_r:xguest_t:s0 key=(null)

Hash: ksysguardd,xguest_t,proc_mdstat_t,file,read

audit2allow

#============= xguest_t ==============
allow xguest_t proc_mdstat_t:file read;

audit2allow -R

#============= xguest_t ==============
allow xguest_t proc_mdstat_t:file read;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.8.1-201.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-03-11 14:29:08 UTC
1f9feaaafbcd234bb5cfed4fd94b84a5f8242650 fixes this in Rawhide.

Comment 2 Miroslav Grepl 2013-03-12 09:58:42 UTC
back ported.

Comment 3 Fedora Update System 2013-03-12 13:55:57 UTC
selinux-policy-3.11.1-85.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18

Comment 4 Fedora Update System 2013-03-12 23:37:52 UTC
Package selinux-policy-3.11.1-85.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-85.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3605/selinux-policy-3.11.1-85.fc18
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-03-14 03:01:23 UTC
selinux-policy-3.11.1-85.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.