Bug 756812

Summary: Add selinux type for file /run/mcelog.pid
Product: [Fedora] Fedora Reporter: David Jaša <djasa>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: 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: 2011-12-13 09:07:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 756811    

Description David Jaša 2011-11-24 17:03:32 UTC
Description of problem:
SSIA. If I understand SELinux policies correctly, a clean fix for bug 756811 involves adding special type /run/mcelog.pid that only mcelog will get processes with scontext=system_u:system_r:mcelog_t:s0 will able to modify.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 David Jaša 2011-11-24 17:05:24 UTC
typo: "type /run/mcelog.pid" --> "type for file /run/mcelog.pid"

Comment 2 David Jaša 2011-11-24 17:57:32 UTC
After further investigation, it seems that the only problem is a wrong context for file /var/run/mcelog.pid in policy, when changed to mcelo_var_run_t, after running:

semanage fcontext -a -t mcelog_var_run_t /var/run/mcelog.pid

and restoring context, all AVCs are gone.