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 1759900 - ipa-ods-exporter AVC for /var/kerberos/krb5
Summary: ipa-ods-exporter AVC for /var/kerberos/krb5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.2
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
: 1780086 (view as bug list)
Depends On: 1759884
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-09 11:36 UTC by Lukas Vrabec
Modified: 2020-05-20 15:20 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1759884
Environment:
Last Closed: 2020-04-28 16:41:25 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1773 0 None None None 2020-04-28 16:41:38 UTC

Description Lukas Vrabec 2019-10-09 11:36:55 UTC
+++ This bug was initially created as a clone of Bug #1759884 +++

Description of problem:
FreeIPA's DNSSEC helper ipa-ods-exporter from freeipa-server-dns causes AVCs. The target context is krb5_keytab_t for directory /var/kerberos/krb5. That's the place MIT Kerberos / GSSAPI is looking for client keytabs. ipa-ods-exporter does not use client keytabs from this location. The AVC can be silenced.

Version-Release number of selected component (if applicable):
freeipa-server-dns-4.8.1-3

How reproducible:
always

Steps to Reproduce:
1. Install FreeIPA master with DNSSEC support
2.
3.

Actual results:
time->Wed Oct  9 06:08:14 2019
type=AVC msg=audit(1570615694.460:938): avc:  denied  { search } for  pid=20148 comm="ipa-ods-exporte" name="krb5" dev="vda1" ino=1014 scontext=system_u:system_r:ipa_ods_exporter_t:s0 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0

Expected results:
No AVC

Additional info:
inode 1041 on vda1 is /var/kerberos/krb5:

# stat /var/kerberos/krb5
  File: /var/kerberos/krb5
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: fc01h/64513d    Inode: 1014        Links: 3

--- Additional comment from Lukas Vrabec on 2019-10-09 13:35:51 CEST ---

Fixed in Fedora 29+

commit 8554a928896a7aa5ba2843d1fb3dd5c59a964028 (HEAD -> f29, origin/f29)
Author: Lukas Vrabec <lvrabec>
Date:   Wed Oct 9 13:34:52 2019 +0200

    Allow ipa_ods_exporter_t domain to read krb5_keytab files BZ(1759884)

Comment 6 errata-xmlrpc 2020-04-28 16:41:25 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

Comment 7 Zdenek Pytela 2020-05-20 15:20:14 UTC
*** Bug 1780086 has been marked as a duplicate of this bug. ***


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