Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1743907

Summary: SELinux prevents sssd/p11_child from searching the /root/.config directory
Product: Red Hat Enterprise Linux 8 Reporter: Scott Poore <spoore>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: low    
Version: 8.1CC: lvrabec, mmalik, plautrba, sbose, ssekidde, zpytela
Target Milestone: rcKeywords: AutoVerified, Patch
Target Release: 8.2Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:41:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Scott Poore 2019-08-20 23:47:50 UTC
Description of problem:

When performing some smart card authentications, sssd's p11_child triggers some AVC denials.  If there is no easy way to allow p11_child to skip this scan, these messages can probably be ignored.

[root@rhel8-2 ~]# ausearch -m avc -ts 18:30
----
time->Tue Aug 20 18:33:15 2019
type=PROCTITLE msg=audit(1566343995.622:207): proctitle=2F7573722F6C6962657865632F737373642F7031315F6368696C64002D2D64656275672D6D6963726F7365636F6E64733D30002D2D64656275672D74696D657374616D70733D31002D2D64656275672D66643D3233002D2D64656275672D6C6576656C3D307866376630002D2D707265002D2D766572696679006E6F5F6F6373
type=SYSCALL msg=audit(1566343995.622:207): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=55af9a82d8d0 a2=80000 a3=0 items=0 ppid=3436 pid=3468 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="p11_child" exe="/usr/libexec/sssd/p11_child" subj=system_u:system_r:sssd_t:s0 key=(null)
type=AVC msg=audit(1566343995.622:207): avc:  denied  { search } for  pid=3468 comm="p11_child" name=".config" dev="dm-0" ino=2856739 scontext=system_u:system_r:sssd_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=dir permissive=0
----
time->Tue Aug 20 18:33:15 2019
type=PROCTITLE msg=audit(1566343995.622:208): proctitle=2F7573722F6C6962657865632F737373642F7031315F6368696C64002D2D64656275672D6D6963726F7365636F6E64733D30002D2D64656275672D74696D657374616D70733D31002D2D64656275672D66643D3233002D2D64656275672D6C6576656C3D307866376630002D2D707265002D2D766572696679006E6F5F6F6373
type=SYSCALL msg=audit(1566343995.622:208): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=55af9a82d8d0 a2=90800 a3=0 items=0 ppid=3436 pid=3468 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="p11_child" exe="/usr/libexec/sssd/p11_child" subj=system_u:system_r:sssd_t:s0 key=(null)
type=AVC msg=audit(1566343995.622:208): avc:  denied  { search } for  pid=3468 comm="p11_child" name=".config" dev="dm-0" ino=2856739 scontext=system_u:system_r:sssd_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=dir permissive=0

[root@rhel8-2 ~]# ausearch -m avc -ts 18:30|audit2allow


#============= sssd_t ==============
allow sssd_t config_home_t:dir search;

[root@rhel8-2 ~]# find / -inum 2856739
/root/.config


Version-Release number of selected component (if applicable):

selinux-policy-3.14.3-18.el8.noarch
sssd-2.2.0-16.el8.x86_64
p11-kit-0.23.14-5.el8_0.x86_64

How reproducible:
always

Steps to Reproduce:
1. Setup IPA Smart Card Authentication
2. Generate certificate for user and enroll smartcard
3. Authenticate with smartcard

Actual results:
AVC messages shown above

Expected results:
No AVC denials or warnings expected

Additional info:

Comment 1 Lukas Vrabec 2019-08-26 16:24:25 UTC
This is good candidate for dontaudit rule.

Comment 11 errata-xmlrpc 2020-04-28 16:41:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:1773