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-targeted | Assignee: | Daniel Walsh <dwalsh> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Ben Levenson <benl> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | rawhide | CC: | 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: |
|
||||||
Created attachment 303991 [details]
serefpolicy-3.3.1-virtio-fixed-disk.patch
Fixed in selinux-policy-3.3.1-43.fc9.noarch |
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.