Bug 859546

Summary: dmidecode AVC related to accessing ld.so.cache
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-26 20:47:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hans de Goede 2012-09-21 19:41:50 UTC
Hi,

I just noticed the following AVC in audit.log:

type=AVC msg=audit(1348256238.384:11): avc:  denied  { read } for  pid=733 comm="dmidecode" name="ld.so.cache" dev="sdb1" ino=917779 scontext=system_u:system_r:dmidecode_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:etc_t:s0 tclass=file
type=SYSCALL msg=audit(1348256238.384:11): arch=c000003e syscall=2 success=no exit=-13 a0=7f19102558e4 a1=80000 a2=1 a3=0 items=0 ppid=686 pid=733 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:dmidecode_t:s0-s0:c0.c1023 key=(null)

Harmless since ld.so will fallback to a non cache searc of /lib /usr/lib, but still something which ought to be fixed :)

Regards,

Hans

Comment 1 Daniel Walsh 2012-09-26 20:47:56 UTC
Hans. for some reason ld.so.cache is mislabeled.

restorecon /etc/ld.so.cache

There was a bad policy out for a while that could cause default labeling to get screwed up.

Make sure you update to -25 or later

selinux-policy-3.11.1-25