Bug 582258

Summary: SELinux is preventing /usr/sbin/mcelog "read" access on mem.
Product: [Fedora] Fedora Reporter: alan
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:f128e76e1a9d6648e16e30c2bdd4381ba636aba81d9b1c580fa718981ae4f3aa
Fixed In Version: selinux-policy-3.6.32-113.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-03 16:09:33 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:

Description alan 2010-04-14 14:01:27 UTC
Summary:

SELinux is preventing /usr/sbin/mcelog "read" access on mem.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by mcelog. It is not expected that this access
is required by mcelog and this access may signal an intrusion attempt. It is
also possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:mcelog_t:s0-s15:c0.c1023
Target Context                system_u:object_r:memory_device_t:s15:c0.c1023
Target Objects                mem [ chr_file ]
Source                        mcelog
Source Path                   /usr/sbin/mcelog
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mcelog-0.9pre1-0.1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-108.fc12
Selinux Enabled               True
Policy Type                   mls
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.32.11-99.fc12.x86_64 #1 SMP Mon Apr
                              5 19:59:38 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Dydd Mercher 14 mis Ebrill 2010 15:01:01 BST
Last Seen                     Dydd Mercher 14 mis Ebrill 2010 15:01:01 BST
Local ID                      1bbc2bec-7d66-4ffe-95cb-fb80e64bb57b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1271253661.209:674): avc:  denied  { read } for  pid=19550 comm="mcelog" name="mem" dev=devtmpfs ino=3488 scontext=system_u:system_r:mcelog_t:s0-s15:c0.c1023 tcontext=system_u:object_r:memory_device_t:s15:c0.c1023 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1271253661.209:674): arch=c000003e syscall=2 success=yes exit=3 a0=409e28 a1=0 a2=1000 a3=a items=0 ppid=19548 pid=19550 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=16 comm="mcelog" exe="/usr/sbin/mcelog" subj=system_u:system_r:mcelog_t:s0-s15:c0.c1023 key=(null)



Hash String generated from  catchall,mcelog,mcelog_t,memory_device_t,chr_file,read
audit2allow suggests:

#============= mcelog_t ==============
#!!!! This avc is a constraint violation.  You will need to add an attribute to either the source or target type to make it work.

allow mcelog_t memory_device_t:chr_file read;

Comment 1 Daniel Walsh 2010-04-14 14:12:49 UTC
Miroslav can you add

mls_file_read_all_levels(mcelog_t)

Comment 2 Miroslav Grepl 2010-04-16 07:32:46 UTC
Fixed in selinux-policy-3.6.32-112.fc12

Comment 3 Fedora Update System 2010-04-23 12:44:59 UTC
selinux-policy-3.6.32-113.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 4 Fedora Update System 2010-04-27 02:23:35 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-113.fc12

Comment 5 Fedora Update System 2010-05-03 16:07:36 UTC
selinux-policy-3.6.32-113.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.