Bug 875569

Summary: SELinux is preventing /usr/sbin/dmidecode from using the 'sys_rawio' capabilities.
Product: [Fedora] Fedora Reporter: Lanny Bland <blanlan>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d677cd1c927c7ba6232d0c3fe6fff2d6e648d83f8e653064ef9029665fd8c27e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-12 08:29:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: type
none
File: hashmarkername none

Description Lanny Bland 2012-11-12 03:38:39 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.6-1.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/dmidecode from using the 'sys_rawio' capabilities.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that dmidecode should have the sys_rawio capability 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 dmidecode /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:rhsmcertd_t:s0
:Target Context                system_u:system_r:rhsmcertd_t:s0
:Target Objects                 [ capability ]
:Source                        dmidecode
:Source Path                   /usr/sbin/dmidecode
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           dmidecode-2.11-8.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-159.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov
:                              5 21:59:35 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-11-11 21:34:44 CST
:Last Seen                     2012-11-11 21:34:44 CST
:Local ID                      54f7713b-546a-495c-bd86-6d324e6251e5
:
:Raw Audit Messages
:type=AVC msg=audit(1352691284.987:65): avc:  denied  { sys_rawio } for  pid=1616 comm="dmidecode" capability=17  scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:rhsmcertd_t:s0 tclass=capability
:
:
:type=SYSCALL msg=audit(1352691284.987:65): arch=x86_64 syscall=open success=yes exit=EIO a0=409d18 a1=0 a2=409d18 a3=238 items=0 ppid=1615 pid=1616 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=dmidecode exe=/usr/sbin/dmidecode subj=system_u:system_r:rhsmcertd_t:s0 key=(null)
:
:Hash: dmidecode,rhsmcertd_t,rhsmcertd_t,capability,sys_rawio
:
:audit2allow
:
:#============= rhsmcertd_t ==============
:allow rhsmcertd_t self:capability sys_rawio;
:
:audit2allow -R
:
:#============= rhsmcertd_t ==============
:allow rhsmcertd_t self:capability sys_rawio;
:

Comment 1 Lanny Bland 2012-11-12 03:38:41 UTC
Created attachment 643169 [details]
File: type

Comment 2 Lanny Bland 2012-11-12 03:38:43 UTC
Created attachment 643170 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-12 08:29:04 UTC

*** This bug has been marked as a duplicate of bug 875572 ***