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 1820298 - AVC denial during ipa-adtrust-install --add-agents
Summary: AVC denial during ipa-adtrust-install --add-agents
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.9
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks: 1822123
TreeView+ depends on / blocked
 
Reported: 2020-04-02 17:25 UTC by Florence Blanc-Renaud
Modified: 2020-09-29 19:55 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:55:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:3925 0 None None None 2020-09-29 19:55:44 UTC

Description Florence Blanc-Renaud 2020-04-02 17:25:10 UTC
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)

Comment 2 Lukas Vrabec 2020-04-07 15:01:02 UTC
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.

Comment 3 Florence Blanc-Renaud 2020-04-14 13:31:28 UTC
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.

Comment 39 Kaleem 2020-06-01 07:21:47 UTC
clearing needinfo on me as bugzilla is verified now.

Comment 41 errata-xmlrpc 2020-09-29 19:55:23 UTC
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


Note You need to log in before you can comment on or make changes to this bug.