Bug 1985823 - 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 EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:836512034e768ae599578202141...
: 2003424 2012820 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-26 01:42 UTC by Sam Varshavchik
Modified: 2022-06-08 06:21 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-08 06:21:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1773641 1 None None None 2022-01-06 08:00:44 UTC

Description Sam Varshavchik 2021-07-26 01:42:15 UTC
Description of problem:
Woke up laptop from hibernation
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-34.14-1.fc34.noarch
Local Policy RPM              selinux-policy-targeted-34.14-1.fc34.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 5.13.4-200.fc34.x86_64 #1 SMP Tue
                              Jul 20 20:27:29 UTC 2021 x86_64 x86_64
Alert Count                   1
First Seen                    2021-07-25 21:39:40 EDT
Last Seen                     2021-07-25 21:39:40 EDT
Local ID                      359e293d-d330-4c8a-938f-cf04129ecb93

Raw Audit Messages
type=AVC msg=audit(1627263580.566:757): avc:  denied  { sys_ptrace } for  pid=2840 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-34.14-1.fc34.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.13.4-200.fc34.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2021-09-13 06:32:54 UTC
*** Bug 2003424 has been marked as a duplicate of this bug. ***

Comment 2 Zdenek Pytela 2022-01-06 07:59:44 UTC
*** Bug 2012820 has been marked as a duplicate of this bug. ***

Comment 3 Holger Schranz 2022-01-17 04:38:37 UTC
Similar problem has been detected:

At the startup

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

Comment 4 James Villegas 2022-02-10 16:11:16 UTC
Similar problem has been detected:

I opened Firefox

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

Comment 5 Ben Cotton 2022-05-12 16:50:34 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '34'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 34 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Ben Cotton 2022-06-08 06:21:37 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07.

Fedora Linux 34 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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