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

Bug 2114902

Summary: selinux-policy AVC denials during ipa trust-add
Product: Red Hat Enterprise Linux 9 Reporter: anuja <amore>
Component: selinux-policyAssignee: Nikola Knazekova <nknazeko>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.1CC: frenaud, lvrabec, mmalik, nknazeko, rcritten, ssekidde, tscherf, zpytela
Target Milestone: rcKeywords: Reopened, Triaged
Target Release: 9.2   
Hardware: Unspecified   
OS: Linux   
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2106006
: 2117199 2168961 (view as bug list) Environment:
Last Closed: 2023-02-10 18:04:35 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:
Bug Depends On: 2115691    
Bug Blocks: 2168961    

Description anuja 2022-08-03 13:39:09 UTC
Description of problem:
THis is clone of

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

How reproducible:

Steps to Reproduce:
Steps From

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

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

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

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.