Bug 1820298
| Summary: | AVC denial during ipa-adtrust-install --add-agents | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Florence Blanc-Renaud <frenaud> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.9 | CC: | ksiddiqu, lvrabec, mmalik, pcech, plautrba, sorlov, ssekidde, tscherf, vmojzis, zpytela |
| Target Milestone: | rc | Keywords: | Reopened, Triaged |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-09-29 19:55:23 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: | 1822123 | ||
This issue was not selected to be included in Red Hat Enterprise Linux 7 because it is seen either as low or moderate impact to a small number of use-cases. Current minor release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise, we recommend moving the request to Red Hat Enterprise Linux 8 if applicable. Hi, I would like your team to re-consider this issue. AD trust is an important use case for IdM customers and without the fix, RHEL 7.9 looses the ability to easily configure additional trust agents in SELinux enforcing mode. clearing needinfo on me as bugzilla is verified now. 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 (selinux-policy bug fix and enhancement update), 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:3925 |
Description of problem: When configuring an AD trust agent, the command ipa-adtrust-install --add-agents is unable to configure the additional agent. Version-Release number of selected component (if applicable): ipa-server-4.6.8-1.el7.x86_64 selinux-policy-3.13.1-267.el7.noarch How reproducible: Always Steps to Reproduce: 1. install ipa master with ipa-server-install 2. install ipa replica with ipa-replica-install 3. run ipa-adtrust-install --add-sids --a password --enable-compat --add-agents When the command prompts for configuration of additional masters, answer yes Actual results: The command fails to configure the replica as a trust agent and prints: WARNING: you MUST manually enable the Schema compatibility Plugin and WARNING: you MUST restart (both "ipactl restart" and "systemctl restart sssd") the following IPA masters in order to activate them to serve information about users from trusted forests: <replica-fqdn> Expected results: The command should succeed. Additional info: ipa-adtrust-install launches a remote command on the replica though IPA XMLRPC. This command is using oddjob to execute a CLI but when SE linux is in enforcing mode, this mechanism fails with the following AVC: type=PROCTITLE msg=audit(1585846187.646:486): proctitle=2F7573722F7362696E2F6F64646A6F6264002D6E002D70002F7661722F72756E2F6F64646A6F62642E706964002D7400333030 type=SYSCALL msg=audit(1585846187.646:486): arch=c000003e syscall=59 success=no exit=-13 a0=55cfcac58ba0 a1=55cfcac5c030 a2=55cfcac654e0 a3=0 items=0 ppid=11000 pid=17422 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="oddjobd" exe="/usr/sbin/oddjobd" subj=system_u:system_r:oddjob_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(1585846187.646:486): avc: denied { transition } for pid=17422 comm="oddjobd" path="/usr/libexec/ipa/oddjob/org.freeipa.server.trust-enable-agent" dev="dm-0" ino=18348371 scontext=system_u:system_r:oddjob_t:s0-s0:c0.c1023 tcontext=system_u:system_r:httpd_t:s0 tclass=process permissive=0 On Fedora 31+, freeipa delivers his own selinux policy and the following line was added in selinux/ipa.fc to fix the issue: /usr/libexec/ipa/oddjob/org\.freeipa\.server\.trust-enable-agent -- gen_context(system_u:object_r:ipa_helper_exec_t,s0)