Bug 953145 - SELinux is preventing /usr/sbin/dmidecode from 'open' accesses on the file /usr/sbin/dmidecode.
Summary: SELinux is preventing /usr/sbin/dmidecode from 'open' accesses on the file /u...
Keywords:
Status: CLOSED DUPLICATE of bug 953133
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:e465bf048352df9f5b87f3674c7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-17 13:08 UTC by Jiří Martínek
Modified: 2013-04-17 22:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-17 22:24:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jiří Martínek 2013-04-17 13:08:25 UTC
Description of problem:
pmtd-selinux-test
SELinux is preventing /usr/sbin/dmidecode from 'open' accesses on the file /usr/sbin/dmidecode.

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

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

Additional Information:
Source Context                system_u:system_r:tuned_t:s0
Target Context                unconfined_u:object_r:dmidecode_exec_t:s0
Target Objects                /usr/sbin/dmidecode [ file ]
Source                        dmidecode
Source Path                   /usr/sbin/dmidecode
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dmidecode-2.11-10.fc19.x86_64
Target RPM Packages           dmidecode-2.11-10.fc19.x86_64
Policy RPM                    selinux-policy-3.12.1-24.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-0.rc4.git0.1.fc19.x86_64 #1
                              SMP Mon Mar 25 02:31:02 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-04-17 08:45:10 EDT
Last Seen                     2013-04-17 08:45:10 EDT
Local ID                      697116fe-8f9a-45f8-98d7-e208eb779ef8

Raw Audit Messages
type=AVC msg=audit(1366202710.768:124): avc:  denied  { open } for  pid=2734 comm="virt-what" path="/usr/sbin/dmidecode" dev="dm-0" ino=142149 scontext=system_u:system_r:tuned_t:s0 tcontext=unconfined_u:object_r:dmidecode_exec_t:s0 tclass=file


type=AVC msg=audit(1366202710.768:124): avc:  denied  { execute_no_trans } for  pid=2734 comm="virt-what" path="/usr/sbin/dmidecode" dev="dm-0" ino=142149 scontext=system_u:system_r:tuned_t:s0 tcontext=unconfined_u:object_r:dmidecode_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1366202710.768:124): arch=x86_64 syscall=execve success=yes exit=0 a0=25195e0 a1=2519f70 a2=251a310 a3=7fff933fd210 items=0 ppid=2733 pid=2734 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=dmidecode exe=/usr/sbin/dmidecode subj=system_u:system_r:tuned_t:s0 key=(null)

Hash: dmidecode,tuned_t,dmidecode_exec_t,file,open

audit2allow

#============= tuned_t ==============
allow tuned_t dmidecode_exec_t:file { open execute_no_trans };

audit2allow -R
require {
	type tuned_t;
}

#============= tuned_t ==============
dmidecode_exec(tuned_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-0.rc4.git0.1.fc19.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-04-17 22:24:48 UTC

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


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