Bug 1359115

Summary: selinux policy doesn't allow IPA to retrieve trusted domains
Product: [Fedora] Fedora Reporter: Lenka Doudova <lryznaro>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-191.11.fc24 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-15 16:06:36 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 Lenka Doudova 2016-07-22 10:18:37 UTC
Description of problem:
When a trust between IPA and Active Directory is established, selinux prevents retrieval of all trusted subdomains.

How reproducible:
Install IPA with trust capability, establish trust with forest root domain (trust.ad). The forest must contain at least one subdomain (subdomain.trust.ad). Have selinux policy Enforcing.

Steps to Reproduce:
ipa trustdomain-find trust.ad

Actual results:
Returns only forest root domain trust.ad.

Expected results:
Should return forest root domain and subdomain both (trust.ad, subdomain.trust.ad)


Additional info:
Ausearch log:
type=AVC msg=audit(1469181046.664:2062): avc:  denied  { write } for  pid=18721 comm="com.redhat.idm." name="slapd-DOM-200-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM.socket" dev="tmpfs" ino=167120 scontext=system_u:system_r:ipa_helper_t:s0 tcontext=system_u:object_r:dirsrv_var_run_t:s0 tclass=sock_file permissive=1

IPA version:
$ rpm -q freeipa-server
freeipa-server-4.4.0.201607220816GITe787e8f-0.fc24.x86_64