Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1959705 - SELinux is preventing p11_child from 'getattr' accesses on the file /usr/sbin/pkcsslotd.
Summary: SELinux is preventing p11_child from 'getattr' accesses on the file /usr/sbin...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ef4881745d347c6fe62e3c65a37...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-12 07:12 UTC by Jakub Jelen
Modified: 2021-05-12 07:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jakub Jelen 2021-05-12 07:12:38 UTC
Description of problem:
sssd is configured to use smart cards login. Invoking any authentication (for example sudo) will raise this error (and I think prevents smart card login from working)
SELinux is preventing p11_child from 'getattr' accesses on the file /usr/sbin/pkcsslotd.

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

If you believe that p11_child should be allowed getattr access on the pkcsslotd 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:
# ausearch -c 'p11_child' --raw | audit2allow -M my-p11child
# semodule -X 300 -i my-p11child.pp

Additional Information:
Source Context                system_u:system_r:sssd_t:s0
Target Context                system_u:object_r:pkcs_slotd_exec_t:s0
Target Objects                /usr/sbin/pkcsslotd [ file ]
Source                        p11_child
Source Path                   p11_child
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           opencryptoki-3.14.0-6.fc33.x86_64
SELinux Policy RPM            selinux-policy-targeted-3.14.6-37.fc33.noarch
Local Policy RPM              selinux-policy-targeted-3.14.6-37.fc33.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.10.22-200.fc33.x86_64 #1 SMP Tue
                              Mar 9 22:05:08 UTC 2021 x86_64 x86_64
Alert Count                   5
First Seen                    2021-05-10 09:20:21 CEST
Last Seen                     2021-05-12 09:09:41 CEST
Local ID                      f60c6737-0cfe-4e4a-aea3-3f19cbe91495

Raw Audit Messages
type=AVC msg=audit(1620803381.118:24793): avc:  denied  { getattr } for  pid=667312 comm="p11_child" path="/usr/sbin/pkcsslotd" dev="dm-1" ino=1581455 scontext=system_u:system_r:sssd_t:s0 tcontext=system_u:object_r:pkcs_slotd_exec_t:s0 tclass=file permissive=0


Hash: p11_child,sssd_t,pkcs_slotd_exec_t,file,getattr

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

Additional info:
component:      selinux-policy
reporter:       libreport-2.14.0
hashmarkername: setroubleshoot
kernel:         5.10.22-200.fc33.x86_64
type:           libreport


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