Bug 1381228

Summary: Running ipa-server-install --setup-dns produces AVC denials about ipa_dnskey_t and httpd_config_t
Product: [Fedora] Fedora Reporter: Jan Pazdziora <jpazdziora>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: abokovoy, dominick.grift, dwalsh, ipa-maint, jcholast, jhrozek, jpazdziora, lvrabec, mgrepl, mkosek, plautrba, pmoore, pspacek, pvoborni, rcritten, ssorce
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: Environment:
Last Closed: 2016-12-20 21:36:53 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:

Description Jan Pazdziora 2016-10-03 13:20:52 UTC
Description of problem:

When ipa-server-install --setup-dns ... is run, AVC denials like

type=AVC msg=audit(1475496675.655:287): avc:  denied  { search } for  pid=17514 comm="ipa-dnskeysyncd" name="httpd" dev="dm-0" ino=670351 scontext=system_u:system_r:ipa_dnskey_t:s0 tcontext=system_u:object_r:httpd_config_t:s0 tclass=dir permissive=0

get logged.

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

freeipa-server-4.2.4-2.fc23.x86_64
selinux-policy-3.13.1-158.24.fc23.noarch

How reproducible:

Deterministic.

Steps to Reproduce:
1. Have Fedora 23 machine with freeipa-server-dns installed.
2. Run ipa-server-install --setup-dns --forwarder=10.11.12.13 --hostname=$(hostname) -r EXAMPLE.TEST -n example.test -p Secret123 -a Secret123 -U
3. Check /var/log/audit/audit.log.

Actual results:

type=AVC msg=audit(1475496675.655:287): avc:  denied  { search } for  pid=17514 comm="ipa-dnskeysyncd" name="httpd" dev="dm-0" ino=670351 scontext=system_u:system_r:ipa_dnskey_t:s0 tcontext=system_u:object_r:httpd_config_t:s0 tclass=dir permissive=0

Expected results:

No AVC denials.

Additional info:

Comment 2 Petr Spacek 2016-10-04 10:21:35 UTC
(In reply to Jan Pazdziora from comment #0)
> type=AVC msg=audit(1475496675.655:287): avc:  denied  { search } for 
> pid=17514 comm="ipa-dnskeysyncd" name="httpd" dev="dm-0" ino=670351
> scontext=system_u:system_r:ipa_dnskey_t:s0
> tcontext=system_u:object_r:httpd_config_t:s0 tclass=dir permissive=0

This is exactly what we have seen in
https://bugzilla.redhat.com/show_bug.cgi?id=1333106#c17

It was fixed in
https://bugzilla.redhat.com/show_bug.cgi?id=1333106#c25


Please be so kind and fix the same thing in Fedora 23 so it works the same as in Fedora 24. Thanks!

Comment 3 Fedora End Of Life 2016-11-25 09:36:29 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. 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 '23'.

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 23 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 4 Fedora End Of Life 2016-12-20 21:36:53 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 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.