Bug 1309810

Summary: SELinux is preventing qemu-kvm from 'read' accesses on the file libnss_files-2.22.90.so.
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:aa5f0d0908e0d78894e392b9a91d68eb62bc063cfabc703e24e8534ea953d6af;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-19 20:40:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joachim Frieben 2016-02-18 18:31:04 UTC
Description of problem:
SELinux is preventing qemu-kvm from 'read' accesses on the file libnss_files-2.22.90.so.

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

If you believe that qemu-kvm should be allowed read access on the libnss_files-2.22.90.so file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep qemu-kvm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:svirt_t:s0:c117,c804
Target Context                unconfined_u:object_r:user_home_t:s0
Target Objects                libnss_files-2.22.90.so [ file ]
Source                        qemu-kvm
Source Path                   qemu-kvm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-171.fc24.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.5.0-0.rc4.git1.2.fc24.x86_64 #1
                              SMP Wed Feb 17 16:11:54 UTC 2016 x86_64 x86_64
Alert Count                   13
First Seen                    2016-02-18 19:29:34 CET
Last Seen                     2016-02-18 19:29:35 CET
Local ID                      76331761-f139-4e3a-8bb7-b30ada3d2f14

Raw Audit Messages
type=AVC msg=audit(1455820175.984:688): avc:  denied  { read } for  pid=8102 comm="qemu-system-x86" name="libnss_files-2.22.90.so" dev="dm-3" ino=5374718 scontext=unconfined_u:unconfined_r:svirt_t:s0:c117,c804 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0


Hash: qemu-kvm,svirt_t,user_home_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-171.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc4.git1.2.fc24.x86_64
type:           libreport

Potential duplicate: bug 808992

Comment 1 Lukas Vrabec 2016-02-18 18:38:46 UTC
Hi Joachim, 

Could you run:
# restorecon -Rv /usr/lib64/libnss_files-2.22.90.so

Could you reproduce this issue after using restorecon command? 


Thank you.