Bug 787320

Summary: SELinux is preventing /usr/sbin/smartd from 'read' accesses on the None unix.
Product: [Fedora] Fedora Reporter: Flóki Pálsson <flokip>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:57c6fabb52b559a7921010eea6d857f8599f16135f974a239343d69fdefc16f6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-06 11:39:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Flóki Pálsson 2012-02-04 00:04:19 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc2.git2.1.fc17.x86_64
reason:         SELinux is preventing /usr/sbin/smartd from 'read' accesses on the None unix.
time:           lau  4.feb 2012, 00:03:59 GMT

description:
:SELinux is preventing /usr/sbin/smartd from 'read' accesses on the None unix.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that smartd should be allowed read access on the unix <Unknown> 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 smartd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:fsdaemon_t:s0
:Target Context                system_u:object_r:proc_net_t:s0
:Target Objects                unix [ None ]
:Source                        smartd
:Source Path                   /usr/sbin/smartd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           smartmontools-5.42-3.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-81.2.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc2.git2.1.fc17.x86_64 #1
:                              SMP Thu Feb 2 22:24:52 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    fös  3.feb 2012, 23:53:22 GMT
:Last Seen                     fös  3.feb 2012, 23:53:22 GMT
:Local ID                      059e6e7d-586e-485e-b7d5-5d0712eb9587
:
:Raw Audit Messages
:type=AVC msg=audit(1328313202.297:32): avc:  denied  { read } for  pid=458 comm="smartd" name="unix" dev="proc" ino=4026532000 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328313202.297:32): arch=c000003e syscall=21 success=no exit=-13 a0=7fff4d507cb0 a1=4 a2=7fff4d507cbe a3=7fff4d507ac0 items=0 ppid=1 pid=458 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="smartd" exe="/usr/sbin/smartd" subj=system_u:system_r:fsdaemon_t:s0 key=(null)
:
:
:Hash: smartd,fsdaemon_t,proc_net_t,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-02-06 11:39:52 UTC
Fixed in selinux-policy-3.10.0-83.fc17