Bug 444468

Summary: KVM guest with virtio drivers fails to mount /boot in rc.sysinit
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: berrange, katzj
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: 2008-04-28 19:03:16 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: 235706    
Attachments:
Description Flags
serefpolicy-3.3.1-virtio-fixed-disk.patch none

Description Mark McLoughlin 2008-04-28 15:21:28 UTC
A F-9 KVM guest using virtio drivers currently fails to mount /boot during
rc.sysinit with this:

avc:  denied  { read } for pid=1081 comm="mount" name="vda1" dev=tmpfs ino=261
scontext=system_u:system_r:mount_t:s0 tcontext=system_u:object_r:device_t:s0
tclass=blk_file
avc:  denied  { getattr } for pid=1081 comm="mount" path="/dev/vda1" dev=tmpfs
ino=261 scontext=system_u:system_r:mount_t:s0
tcontext=system_u:object_r:device_t:s0 tclass=blk_file

Turns out to simply be that we need to set the file contexts on /dev/vda*
correctly. Patch below.

Adding to F9Blocker because if mounting /boot fails and the user tries to update
the kernel, things are going to get mightily screwed up.

Comment 1 Mark McLoughlin 2008-04-28 15:21:28 UTC
Created attachment 303991 [details]
serefpolicy-3.3.1-virtio-fixed-disk.patch

Comment 2 Daniel Walsh 2008-04-28 19:03:16 UTC
Fixed in selinux-policy-3.3.1-43.fc9.noarch