Bug 1806129

Summary: SELinux is preventing pcscd from using the 'sys_nice' capabilities.
Product: [Fedora] Fedora Reporter: mrecht <mrecht.m>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: artemio.silva, dwalsh, grepl.miroslav, iqerr964, lloydchristmas155, lvrabec, mahmoud.rady266, mohantsa, noorvki3, plautrba, pradeepk.dev, vmojzis, whittelion, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:eefffffd3f386068ef138f16194d2447e8f8067926d6ac48765bccb70a711433;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-22 15:57:35 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 mrecht 2020-02-22 10:36:08 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           
Policy RPM                    selinux-policy-3.14.5-27.fc32.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.6.0-0.rc2.git0.1.fc32.x86_64 #1
                              SMP Mon Feb 17 21:09:39 UTC 2020 x86_64 x86_64
Alert Count                   1
First Seen                    2020-02-22 11:24:19 CET
Last Seen                     2020-02-22 11:24:19 CET
Local ID                      3850ad1d-2524-4a78-845c-626fda2a854f

Raw Audit Messages
type=AVC msg=audit(1582367059.928:243): avc:  denied  { sys_nice } for  pid=1950 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.5-27.fc32.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.12.0
hashmarkername: setroubleshoot
kernel:         5.6.0-0.rc2.git0.1.fc32.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2020-02-22 15:57:35 UTC

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

Comment 2 err666 2020-04-17 10:27:21 UTC
*** Bug 1825182 has been marked as a duplicate of this bug. ***

Comment 3 whittelion 2020-05-03 17:34:10 UTC
*** Bug 1830761 has been marked as a duplicate of this bug. ***

Comment 4 Mahmoud 2020-05-05 19:00:35 UTC
*** Bug 1831864 has been marked as a duplicate of this bug. ***

Comment 5 mohantsa 2020-05-06 07:04:26 UTC
*** Bug 1832126 has been marked as a duplicate of this bug. ***

Comment 6 Noor 2020-05-31 11:02:01 UTC
*** Bug 1842246 has been marked as a duplicate of this bug. ***

Comment 7 Artemio 2020-06-04 18:22:55 UTC
*** Bug 1844182 has been marked as a duplicate of this bug. ***

Comment 8 Pradeep Kumar 2020-09-12 02:37:05 UTC
*** Bug 1878330 has been marked as a duplicate of this bug. ***

Comment 9 Wiisanen 2020-10-31 08:03:44 UTC
*** Bug 1893418 has been marked as a duplicate of this bug. ***