Bug 869304 - AVC while starting VMs hosted on RHS
AVC while starting VMs hosted on RHS
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy (Show other bugs)
All Linux
high Severity medium
: rc
: ---
Assigned To: Miroslav Grepl
Milos Malik
Depends On:
Blocks: 877991
  Show dependency treegraph
Reported: 2012-10-23 10:24 EDT by Anush Shetty
Modified: 2013-02-21 03:31 EST (History)
2 users (show)

See Also:
Fixed In Version: selinux-policy-3.7.19-177.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 877991 (view as bug list)
Last Closed: 2013-02-21 03:31:45 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Anush Shetty 2012-10-23 10:24:20 EDT
Description of problem: On RHEL 6.3 hypervisor, We saw selinux preventing qemu-kvm getattr access while starting VMs from RHEV-M hosted on RHS storage domain.

We were able to start VMs successfully though. 

Version-Release number of selected component (if applicable): 
# rpm -qa | grep vdsm
# getsebool -a | grep fusefs
samba_share_fusefs --> off
sanlock_use_fusefs --> on
use_fusefs_home_dirs --> off
virt_use_fusefs --> on

# rpm -qa | grep -i selinux

How reproducible: Consistently

Steps to Reproduce:
1. Start a VM hosted on RHS storage domain
Actual results:

In audit.log

type=AVC msg=audit(1350997078.489:855): avc:  denied  { getattr } for  pid=10844 comm="qemu-kvm" name="/" dev=fuse ino=1 scontext=system_u:system_r:svirt_t:s0:c117,c899 tcontext=system_u:object_r:fusefs_t:s0 tclass=filesystem

Additional info:

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 24
Policy from config file:        targeted


sealert -a /var/log/audit/audit.log

SELinux is preventing /usr/libexec/qemu-kvm from getattr access on the filesystem /.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that qemu-kvm should be allowed getattr access on the  filesystem by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
allow this access for now by executing:
# grep qemu-kvm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp
Comment 2 Miroslav Grepl 2012-10-24 05:53:02 EDT
It needs to be fixed. I am backporting all fixes related to virt_use_* booleans.
Comment 5 errata-xmlrpc 2013-02-21 03:31:45 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.