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 1780086

Summary: AVC Denials are seen when ipa-dns-install is run with --dnssec-master option.
Product: Red Hat Enterprise Linux 8 Reporter: Sudhir Menon <sumenon>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.1CC: lvrabec, mmalik, plautrba, ssekidde
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 15:20:14 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 Sudhir Menon 2019-12-05 11:52:07 UTC
Description of problem: AVC Denials are seen when ipa-dns-install is run with  --dnssec-master option.
 
Version-Release number of selected component (if applicable):
ipa-server-4.8.0-11.module+el8.1.0+4247+9f3fd721.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Install ipa-server
2. Run ipa-dns-install  --dnssec-master
3. ausearch -m AVC

Actual results:
[root@master ~]# ausearch -m AVC
----
time->Thu Dec  5 05:47:44 2019
type=PROCTITLE msg=audit(1575542864.074:1742): proctitle=2F7573722F6C6962657865632F706C6174666F726D2D707974686F6E002D45002F7573722F6C6962657865632F6970612F6970612D6F64732D6578706F72746572
type=SYSCALL msg=audit(1575542864.074:1742): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=56135c0000f0 a2=0 a3=0 items=0 ppid=1 pid=1689 auid=4294967295 uid=991 gid=986 euid=991 suid=991 fsuid=991 egid=986 sgid=986 fsgid=986 tty=(none) ses=4294967295 comm="ipa-ods-exporte" exe="/usr/libexec/platform-python3.6" subj=system_u:system_r:ipa_ods_exporter_t:s0 key=(null)
type=AVC msg=audit(1575542864.074:1742): avc:  denied  { search } for  pid=1689 comm="ipa-ods-exporte" name="krb5" dev="vda1" ino=4327664 scontext=system_u:system_r:ipa_ods_exporter_t:s0 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0

2. /var/log/messages displays the below message
Dec  5 05:47:45 master systemd[1]: Started IPA OpenDNSSEC Signer replacement.
Dec  5 05:47:45 master dbus-daemon[795]: [system] Activating service name='org.fedoraproject.Setroubleshootd' requested by ':1.495' (uid=0 pid=623 comm="/usr/sbin/sedispatch " label="system_u:system_r:auditd_t:s0") (using servicehelper)
Dec  5 05:47:46 master dbus-daemon[795]: [system] Successfully activated service 'org.fedoraproject.Setroubleshootd'
Dec  5 05:47:47 master systemd[1]: Starting Generate rndc key for BIND (DNS)...
Dec  5 05:47:47 master systemd[1]: Started Generate rndc key for BIND (DNS).
Dec  5 05:47:47 master systemd[1]: Starting One-time temporary TLS key generation for httpd.service...
Dec  5 05:47:47 master systemd[1]: Started One-time temporary TLS key generation for httpd.service.
Dec  5 05:47:47 master setroubleshoot[1806]: SELinux is preventing /usr/libexec/platform-python3.6 from search access on the directory krb5. For complete SELinux messages run: sealert -l 980fee23-b2f9-4059-8d86-c7493c010afb
Dec  5 05:47:47 master platform-python[1806]: SELinux is preventing /usr/libexec/platform-python3.6 from search access on the directory krb5.#012#012*****  Plugin catchall (100. confidence) suggests   **************************#012#012If you believe that platform-python3.6 should be allowed search access on the krb5 directory by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this access.#012Do#012allow this access for now by executing:#012# ausearch -c 'ipa-ods-exporte' --raw | audit2allow -M my-ipaodsexporte#012# semodule -X 300 -i my-ipaodsexporte.pp#012

Expected results: 

Additional info:

Comment 2 Milos Malik 2019-12-06 13:01:37 UTC
What version of selinux-policy was installed when the SELinux denials appeared?

Comment 3 Sudhir Menon 2019-12-09 07:15:09 UTC
selinux-policy-3.14.3-20.el8.noarch.

Comment 5 Zdenek Pytela 2020-05-20 15:20:14 UTC
This bug has been resolved during the RHEL 8.2 development cycle.

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