Bug 206042

Summary: lvm_t disallowed write/getattr for lvm_etc_t
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: lvm2Assignee: Alasdair Kergon <agk>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, mbroz, sparli
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-11 20:35:05 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:
Bug Depends On:    
Bug Blocks: 150224    

Description Jeremy Katz 2006-09-11 17:34:30 UTC
The lvm tools aren't being allowed write or getattr perms for lvm_etc_t -- I
expect that we probably do want to allow this (or alternately, /etc/lvm/.cache
should be labeled differently)

This leads to SELinux avcs on kernel upgrades

Comment 1 Daniel Walsh 2006-09-11 20:26:31 UTC
This should be labeled lvm_medata_t

ls -lZ /etc/lvm/.cache 
-rw-------  root root system_u:object_r:lvm_metadata_t /etc/lvm/.cache

Any idea how this got mislabeled?  Did you recreate the file without using lvm
tools?

Comment 2 Jeremy Katz 2006-09-11 20:35:05 UTC
Not that I know of.  But since I've only seen it on my laptop, I'm willing to
believe it's something spurious to do with how I go through rawhide daily ;)