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 1740540 - [RHEL 8.1] avc: denied { search } for comm="rpc.gssd" name="krb5" dev="dm-0"
Summary: [RHEL 8.1] avc: denied { search } for comm="rpc.gssd" name="krb5" dev="dm-0"
Keywords:
Status: CLOSED DUPLICATE of bug 1730144
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Lukas Vrabec
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-13 08:49 UTC by Yongcheng Yang
Modified: 2019-08-22 16:40 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.14.3-15.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-13 11:48:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yongcheng Yang 2019-08-13 08:49:50 UTC
Description of problem:
Get a new rpc.gssd AVC warning during our RHEL-8.1.0-20190806.2 Kerberos NFS tests:
'''
type=AVC msg=audit(1565683878.027:1500): avc:  denied  { search } for  pid=46828 comm="rpc.gssd" name="krb5" dev="dm-0" ino=33566251 scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0
'''

Seemingly it occurs when a user reaching files of different UID via Kerberos NFS.
It doesn't affect the function, i.e. file still be reachable as previously.


Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-13.el8 within RHEL-8.1.0-20190806.2
               ^^^^^^^^^^ failed
selinux-policy-3.14.3-9.el8 within RHEL-8.1.0-20190701.0
               ^^^^^^^^^ good

How reproducible:
always

Steps to Reproduce:
1. please find in "Actual results"


Actual results:
[root.0 ~]# useradd krbuser
[root.0 ~]# kadmin -p root/admin -w redhat -q 'addprinc -pw redhat krbuser'
Authenticating as principal root/admin with password.
WARNING: no policy specified for krbuser; defaulting to no policy
Principal "krbuser" created.
[root.0 ~]# su krbuser -c 'echo redhat | kinit -l 10m -r 60m'
Password for testuser:
[root.0 ~]#
[root.0 ~]# grep denied /var/log/audit/audit.log
[root.0 ~]# date > /mnt/file.root
[root.0 ~]# ll /mnt/
total 1028
-rw-------. 1 krbuser krbuser 1048576 Aug 13 04:07 file.krb
-rw-r--r--. 1 nobody  nobody       29 Aug 13 04:11 file.root
[root.0 ~]# cat /mnt/file.krb
cat: /mnt/file.krb: Permission denied
[root.0 ~]# cat /mnt/file.root
Tue Aug 13 04:11:00 EDT 2019
[root.0 ~]# grep denied /var/log/audit/audit.log
[root.0 ~]# su krbuser -c 'cat /mnt/file.root'  <<<<<  AVC warning triggered
Tue Aug 13 04:11:00 EDT 2019
[root.0 ~]# grep denied /var/log/audit/audit.log
type=AVC msg=audit(1565683878.027:1500): avc:  denied  { search } for  pid=46828 comm="rpc.gssd" name="krb5" dev="dm-0" ino=33566251 scontext=system_u:system_r:gssd_t:s0 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0
[root.0 ~]#
[root.0 ~]# rpm -q selinux-policy nfs-utils kernel
selinux-policy-3.14.3-13.el8.noarch
nfs-utils-2.3.3-23.el8.x86_64
kernel-4.18.0-128.el8.x86_64


Expected results:
No AVC warning

Additional info:
# failed beaker job in RHEL-8.1.0-20190806.2
https://beaker.engineering.redhat.com/recipes/7225910#task97576284

# passed beaker job in RHEL-8.1.0-20190701.0 (same nfs-utils version with above job)
https://beaker.engineering.redhat.com/recipes/7194089#task97216253

Comment 1 Lukas Vrabec 2019-08-13 11:48:59 UTC

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


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