Bug 1816787

Summary: SELinux is preventing pcscd from using the 'sys_nice' capabilities.
Product: [Fedora] Fedora Reporter: Preston <preston.kibbey>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, grepl.miroslav, lvrabec, plautrba, tmpmail30236671, vmojzis, zpytela
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:eefffffd3f386068ef138f16194d2447e8f8067926d6ac48765bccb70a711433;VARIANT_ID=matecompiz;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-09 13:42:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Preston 2020-03-24 17:57:40 UTC
Description of problem:
SELinux is preventing pcscd from using the 'sys_nice' capabilities.

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

If you believe that pcscd should have the sys_nice capability 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:
# ausearch -c 'pcscd' --raw | audit2allow -M my-pcscd
# semodule -X 300 -i my-pcscd.pp

Additional Information:
Source Context                system_u:system_r:pcscd_t:s0
Target Context                system_u:system_r:pcscd_t:s0
Target Objects                Unknown [ capability ]
Source                        pcscd
Source Path                   pcscd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-3.14.6-9.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-9.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.6.0-0.rc6.git2.1.fc33.x86_64 #1
                              SMP Fri Mar 20 22:04:59 UTC 2020 x86_64 x86_64
Alert Count                   1
First Seen                    2020-03-24 13:43:00 EDT
Last Seen                     2020-03-24 13:43:00 EDT
Local ID                      e57edf83-37d2-44fa-8a72-1f2dcbf9f216

Raw Audit Messages
type=AVC msg=audit(1585071780.646:252): avc:  denied  { sys_nice } for  pid=2348 comm="pcscd" capability=23  scontext=system_u:system_r:pcscd_t:s0 tcontext=system_u:system_r:pcscd_t:s0 tclass=capability permissive=0


Hash: pcscd,pcscd_t,pcscd_t,capability,sys_nice

Version-Release number of selected component:
selinux-policy-3.14.6-9.fc33.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.12.0
hashmarkername: setroubleshoot
kernel:         5.6.0-0.rc6.git2.1.fc33.x86_64
type:           libreport

Potential duplicate: bug 1806129

Comment 1 Preston 2020-03-27 18:20:21 UTC
Similar problem has been detected:

Seems to happen when I open a browser of any kind: i.e.; firefox or thunderbird, opera doesn't seem to happen when opening and closing Chrome, however, thats not to say that it won't happen with chrome.

hashmarkername: setroubleshoot
kernel:         5.6.0-0.rc7.git0.1.fc33.x86_64
package:        selinux-policy-3.14.6-10.fc33.noarch
reason:         SELinux is preventing pcscd from using the 'sys_nice' capabilities.
type:           libreport

Comment 2 tmpmail30236671 2020-03-30 23:58:03 UTC
i get the same selinux message about pcscd after logging in as a regular user on
f32 xfce spin x86_64 (amd64).

A similar selinux message also occurs re: firewalld.

Comment 3 Zdenek Pytela 2020-04-09 13:42:41 UTC

*** This bug has been marked as a duplicate of bug 1811407 ***