Bug 1309810 - SELinux is preventing qemu-kvm from 'read' accesses on the file libnss_files-2.22.90.so.
Summary: SELinux is preventing qemu-kvm from 'read' accesses on the file libnss_files-...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:aa5f0d0908e0d78894e392b9a91...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-18 18:31 UTC by Joachim Frieben
Modified: 2016-02-19 20:40 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-19 20:40:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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