Bug 1759884

Summary: ipa-ods-exporter AVC for /var/kerberos/krb5
Product: [Fedora] Fedora Reporter: Christian Heimes <cheimes>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 29CC: dwalsh, lvrabec, mgrepl, plautrba, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1759900 (view as bug list) Environment:
Last Closed: 2019-11-27 23:31:30 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:
Bug Depends On:    
Bug Blocks: 1759900    

Description Christian Heimes 2019-10-09 10:21:33 UTC
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

Comment 1 Lukas Vrabec 2019-10-09 11:35:51 UTC
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 2 Ben Cotton 2019-10-31 18:47:05 UTC
This message is a reminder that Fedora 29 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26.
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
Fedora 'version' of '29'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 29 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, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 3 Ben Cotton 2019-11-27 23:31:30 UTC
Fedora 29 changed to end-of-life (EOL) status on 2019-11-26. Fedora 29 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. If you experience problems, please add a comment to this
bug.

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