Bug 509275

Summary: SELinux preventing mcelog from reading /dev/urandom
Product: [Fedora] Fedora Reporter: Jeffrey Bonggren <hog539g02>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NEXTRELEASE QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: 11   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-04 08:29:10 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
Output From setroubleshoot none

Description Jeffrey Bonggren 2009-07-02 00:37:06 UTC
Created attachment 350227 [details]
Output From setroubleshoot

Ever since I upgraded from Fedora 10 to Fedora 11 (via preupgrade), I have been getting setroubleshoot alerts stating that "SELinux prevented mcelog from reading the urandom device".

This hasn't really been a big problem, but it is annoying.  I figure something is going wrong here, either in mcelog or in the SELinux configuration.

I don't understand why the mcelog would even need /dev/urandom.  Why does a logging program need randomness?

I am attaching the output from setroubleshoot.

Comment 1 Daniel Walsh 2009-07-06 17:49:16 UTC
Miroslav, upstream rejected the current policy for mcelog saying it is different from dmesg and asked for policy written specifically for it as a cron job.  Could you do that to fix this bug?

Jeffrey, 

for now you can add this allow rule using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Comment 2 Miroslav Grepl 2010-03-04 08:29:10 UTC
The mcelog policy was added to the F12 selinux-policy.