Description of problem: I tried attaching a smartcard to a virtual machine. SELinux is preventing /usr/bin/qemu-system-x86_64 from 'getattr' accesses on the sock_file /run/pcscd/pcscd.comm. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that qemu-system-x86_64 should be allowed getattr access on the pcscd.comm sock_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-system-x86 /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:svirt_t:s0:c671,c925 Target Context system_u:object_r:pcscd_var_run_t:s0 Target Objects /run/pcscd/pcscd.comm [ sock_file ] Source qemu-system-x86 Source Path /usr/bin/qemu-system-x86_64 Port <Unknown> Host (removed) Source RPM Packages qemu-system-x86-1.4.2-12.fc19.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-74.11.fc19.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.11.6-200.fc19.x86_64 #1 SMP Fri Oct 18 22:34:18 UTC 2013 x86_64 x86_64 Alert Count 1 First Seen 2013-11-12 16:27:17 EST Last Seen 2013-11-12 16:27:17 EST Local ID 4202a0ad-20b4-4b00-9d7f-975242cc4748 Raw Audit Messages type=AVC msg=audit(1384234037.848:74626): avc: denied { getattr } for pid=7725 comm="qemu-system-x86" path="/run/pcscd/pcscd.comm" dev="tmpfs" ino=11997 scontext=system_u:system_r:svirt_t:s0:c671,c925 tcontext=system_u:object_r:pcscd_var_run_t:s0 tclass=sock_file type=SYSCALL msg=audit(1384234037.848:74626): arch=x86_64 syscall=stat success=no exit=EACCES a0=7f8a3dcaae60 a1=7fff05c53570 a2=7fff05c53570 a3=7fff05c534b0 items=0 ppid=1 pid=7725 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 ses=4294967295 tty=(none) comm=qemu-system-x86 exe=/usr/bin/qemu-system-x86_64 subj=system_u:system_r:svirt_t:s0:c671,c925 key=(null) Hash: qemu-system-x86,svirt_t,pcscd_var_run_t,sock_file,getattr Additional info: reporter: libreport-2.1.9 hashmarkername: setroubleshoot kernel: 3.11.6-200.fc19.x86_64 type: libreport
If you run this in permissive mode, what avc's do you see? Did the smart card work in enforcing mode?
*** Bug 1319692 has been marked as a duplicate of this bug. ***
Dark Shenada, can you describe what you were doing when you hit this issue? Is this via virt-manager or gnome boxes?
Googling around, it looks like spice/libcacard can talk to pcscd for certain VM configurations. So I think selinux just needs to allow svirt_t to talk to pcscd. Moving back to selinux-policy
(In reply to Cole Robinson from comment #4) > Googling around, it looks like spice/libcacard can talk to pcscd for certain > VM configurations. So I think selinux just needs to allow svirt_t to talk to > pcscd. Moving back to selinux-policy actually changing component
selinux-policy-3.13.1-158.15.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-df52942a2f
selinux-policy-3.13.1-158.15.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-df52942a2f
selinux-policy-3.13.1-158.15.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.