Bug 2012820 - SELinux is preventing pcscd from 'sys_ptrace' accesses on the cap_userns labeled pcscd_t.
Summary: SELinux is preventing pcscd from 'sys_ptrace' accesses on the cap_userns labe...
Keywords:
Status: CLOSED DUPLICATE of bug 1985823
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:836512034e768ae599578202141...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-11 11:24 UTC by Kamil Páral
Modified: 2022-01-06 07:59 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-06 07:59:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2021-10-11 11:24:10 UTC
Description of problem:
I have no idea what happened, it just popped up.
SELinux is preventing pcscd from 'sys_ptrace' accesses on the cap_userns labeled pcscd_t.

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

If you believe that pcscd should be allowed sys_ptrace access on cap_userns labeled pcscd_t 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 [ cap_userns ]
Source                        pcscd
Source Path                   pcscd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.1-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.1-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.14.10-300.fc35.x86_64 #1 SMP Thu
                              Oct 7 20:48:44 UTC 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-10-11 13:22:37 CEST
Last Seen                     2021-10-11 13:22:37 CEST
Local ID                      f7e6d767-b698-4943-9518-66dd809f2d1d

Raw Audit Messages
type=AVC msg=audit(1633951357.251:1077): avc:  denied  { sys_ptrace } for  pid=1631 comm="pcscd" capability=19  scontext=system_u:system_r:pcscd_t:s0 tcontext=system_u:system_r:pcscd_t:s0 tclass=cap_userns permissive=1


Hash: pcscd,pcscd_t,pcscd_t,cap_userns,sys_ptrace

Version-Release number of selected component:
selinux-policy-targeted-35.1-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.14.10-300.fc35.x86_64
type:           libreport

Potential duplicate: bug 1985823

Comment 1 Tomas Toth 2021-12-28 06:13:26 UTC
Similar problem has been detected:

Started Firefox.

hashmarkername: setroubleshoot
kernel:         5.15.11-200.fc35.x86_64
package:        selinux-policy-targeted-35.7-1.fc35.noarch
reason:         SELinux is preventing pcscd from 'sys_ptrace' accesses on the cap_userns labeled pcscd_t.
type:           libreport

Comment 2 Paul Johnson 2022-01-05 15:55:10 UTC
I've got this too. Happened just after update.

Additional Information:
Source Context                system_u:system_r:pcscd_t:s0
Target Context                system_u:system_r:pcscd_t:s0
Target Objects                Unknown [ cap_userns ]
Source                        pcscd
Source Path                   pcscd
Port                          <Unknown>
Host                          eiffel.lan
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-35.7-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.7-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     eiffel.lan
Platform                      Linux eiffel.lan 5.15.11-200.fc35.x86_64 #1 SMP
                              Wed Dec 22 15:41:11 UTC 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2022-01-05 15:19:55 GMT
Last Seen                     2022-01-05 15:19:55 GMT
Local ID                      5428116c-18d2-448d-a8c4-554fa56d4003

Raw Audit Messages
type=AVC msg=audit(1641395995.768:421): avc:  denied  { sys_ptrace } for  pid=2072 comm="pcscd" capability=19  scontext=system_u:system_r:pcscd_t:s0 tcontext=system_u:system_r:pcscd_t:s0 tclass=cap_userns permissive=1


Hash: pcscd,pcscd_t,pcscd_t,cap_userns,sys_ptrace

Comment 3 Paul Johnson 2022-01-05 15:56:20 UTC
Seems to be a reversion of #1773641

Comment 4 Zdenek Pytela 2022-01-06 07:59:44 UTC

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


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