Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
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 2114902 - selinux-policy AVC denials during ipa trust-add
Summary: selinux-policy AVC denials during ipa trust-add
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.1
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 9.2
Assignee: Nikola Knazekova
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On: 2115691
Blocks: 2168961
TreeView+ depends on / blocked
 
Reported: 2022-08-03 13:39 UTC by anuja
Modified: 2023-02-10 18:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of: 2106006
: 2117199 2168961 (view as bug list)
Environment:
Last Closed: 2023-02-10 18:04:35 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-130042 0 None None None 2022-08-03 13:44:33 UTC

Internal Links: 2117199

Description anuja 2022-08-03 13:39:09 UTC
Description of problem:
THis is clone of https://bugzilla.redhat.com/show_bug.cgi?id=2106006


Version-Release number of selected component (if applicable):
selinux-policy-34.1.38-1.el9.noarch
ipa-server-4.10.0-5.el9.x86_64

How reproducible:
Always

Steps to Reproduce:
Steps From https://bugzilla.redhat.com/show_bug.cgi?id=2106006#c0

Comment 2 Zdenek Pytela 2022-08-03 13:53:59 UTC
The same problem was reported in bz#2102084 and is expected be fixed.

    * Fri Jul 15 2022 Nikola Knazekova <nknazeko> - 34.1.38-1
    - Allow some domains use sd_notify()
    Resolves: rhbz#2056565
    - Revert "Allow rabbitmq to use systemd notify"
    Resolves: rhbz#2056565
    - Update winbind_rpcd_t
    Resolves: rhbz#2102084
^^^

Can you ensure the latest policy was used?
What are the AVC denials?

Comment 3 anuja 2022-08-04 09:15:02 UTC
In pipeline we are using 
[root@master ~]# rpm -qa ipa-server selinux-policy
selinux-policy-34.1.38-1.el9.noarch
ipa-server-4.10.0-5.el9.x86_64

avc logs and steps are attached.

Comment 5 anuja 2022-08-05 07:18:46 UTC
Reported new bug in upstream fedora36 for new AVC failures 
https://bugzilla.redhat.com/show_bug.cgi?id=2115691

Comment 14 Nikola Knazekova 2023-01-25 10:07:02 UTC
Hi frenaud,

the fix was based on reported AVC messages from Anuja.
Nothing has changed in our policy.

Feel free to close it.

Comment 15 Florence Blanc-Renaud 2023-01-26 10:59:01 UTC
Reopening as the failure happens on RHEL 9.1

# rpm -qa ipa-server ipa-selinux selinux-policy
selinux-policy-34.1.43-1.el9_1.1.noarch
ipa-selinux-4.10.0-8.el9_1.noarch
ipa-server-4.10.0-8.el9_1.x86_64

It looks like one patch was not backported to RHEL 9.1:
# sesearch --source smbd_t --target winbind_rpcd_t --allow
allow domain domain:fd use; [ domain_fd_use ]:True
allow domain domain:key { link search };
allow smbd_t winbind_rpcd_t:process transition;
allow smbd_t winbind_rpcd_t:unix_stream_socket connectto;


On RHEL 9.2 (where the test is succeeding), the same command shows:
# sesearch --source smbd_t --target winbind_rpcd_t --allow
allow domain domain:anon_inode { create getattr ioctl map read write };
allow domain domain:fd use; [ domain_fd_use ]:True
allow domain domain:key { link search };
allow smbd_t winbind_rpcd_t:process { noatsecure transition };               <<<< This is the missing patch
allow smbd_t winbind_rpcd_t:unix_stream_socket connectto;

If I add the following module on RHEL 9.1, the test passes:
(allow smbd_t winbind_rpcd_t (process (noatsecure)))


Moving to selinux-policy component.

Comment 19 Florence Blanc-Renaud 2023-01-30 15:35:19 UTC
Justification for z-stream request:
this issue prevents using the trust feature in selinux enforcing mode. This feature is important to many IdM customers and RHEL 9.1 is the most recent version available on RHEL 9.


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