Bug 1309810 - SELinux is preventing qemu-kvm from 'read' accesses on the file libnss_files-2.22.90.so.
SELinux is preventing qemu-kvm from 'read' accesses on the file libnss_files-...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
low Severity low
: ---
: ---
Assigned To: Lukas Vrabec
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2016-02-18 13:31 EST by Joachim Frieben
Modified: 2016-02-19 15:40 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-02-19 15:40:09 EST
Type: ---
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 Joachim Frieben 2016-02-18 13:31:04 EST
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.
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:

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 13:38:46 EST
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.