Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
After establishing trust with Windows AD I see AVC denial
Version-Release number of selected component (if applicable):
ipa-client-4.8.0-11.module+el8.1.0+4247+9f3fd721.x86_64
How reproducible:
Always
Steps to Reproduce:
1. Install ipa server
2. run ipa-adtrust-install
3. setup DNS for establishing trust with AD
4. Check no AVC denials registerd so far: sealert -l '*'
5. execute: echo Secret123 | ipa trust-add ad.test --admin Administrator --password
6. sealert -l '*'
Actual results:
SELinux is preventing ipa-getkeytab from search access on the directory krb5.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that ipa-getkeytab should be allowed search access on the krb5 directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'ipa-getkeytab' --raw | audit2allow -M my-ipagetkeytab
# semodule -X 300 -i my-ipagetkeytab.pp
Additional Information:
Source Context system_u:system_r:ipa_helper_t:s0
Target Context system_u:object_r:krb5_keytab_t:s0
Target Objects krb5 [ dir ]
Source ipa-getkeytab
Source Path ipa-getkeytab
Port <Unknown>
Host master1.testrelm.test
Source RPM Packages
Target RPM Packages
Policy RPM selinux-policy-3.14.3-20.el8.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name master1.testrelm.test
Platform Linux master1.testrelm.test 4.18.0-147.el8.x86_64
#1 SMP Thu Sep 26 15:52:44 UTC 2019 x86_64 x86_64
Alert Count 1
First Seen 2019-11-06 16:19:57 CET
Last Seen 2019-11-06 16:19:57 CET
Local ID 67f70347-d46b-4df1-9d0e-e8b63d7fae27
Raw Audit Messages
type=AVC msg=audit(1573053597.269:109): avc: denied { search } for pid=2425 comm="ipa-getkeytab" name="krb5" dev="vda2" ino=8948995 scontext=system_u:system_r:ipa_helper_t:s0 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0
Hash: ipa-getkeytab,ipa_helper_t,krb5_keytab_t,dir,search
Expected results:
No AVC denials
Additional info:
RHEL8.0 does not have the issue
AVC denial is not seen when adding "-type ad" to command line
Few notes:
1) "--type ad" does not change behavior, AVC denial still occurs
2) there is a lag of several seconds between denial event and moment when output of `sealert -l '*'` becomes not empty
3) If you delete and re-add trust, there is no AVC denial, so you need a clean VM for reproducing the issue.
Comment 2Alexander Bokovoy
2019-11-12 12:01:06 UTC
Moving to selinux-policy. ipa_helper_t needs to be able to access krb5_keytab_t
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:4528
Description of problem: After establishing trust with Windows AD I see AVC denial Version-Release number of selected component (if applicable): ipa-client-4.8.0-11.module+el8.1.0+4247+9f3fd721.x86_64 How reproducible: Always Steps to Reproduce: 1. Install ipa server 2. run ipa-adtrust-install 3. setup DNS for establishing trust with AD 4. Check no AVC denials registerd so far: sealert -l '*' 5. execute: echo Secret123 | ipa trust-add ad.test --admin Administrator --password 6. sealert -l '*' Actual results: SELinux is preventing ipa-getkeytab from search access on the directory krb5. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that ipa-getkeytab should be allowed search access on the krb5 directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'ipa-getkeytab' --raw | audit2allow -M my-ipagetkeytab # semodule -X 300 -i my-ipagetkeytab.pp Additional Information: Source Context system_u:system_r:ipa_helper_t:s0 Target Context system_u:object_r:krb5_keytab_t:s0 Target Objects krb5 [ dir ] Source ipa-getkeytab Source Path ipa-getkeytab Port <Unknown> Host master1.testrelm.test Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.3-20.el8.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name master1.testrelm.test Platform Linux master1.testrelm.test 4.18.0-147.el8.x86_64 #1 SMP Thu Sep 26 15:52:44 UTC 2019 x86_64 x86_64 Alert Count 1 First Seen 2019-11-06 16:19:57 CET Last Seen 2019-11-06 16:19:57 CET Local ID 67f70347-d46b-4df1-9d0e-e8b63d7fae27 Raw Audit Messages type=AVC msg=audit(1573053597.269:109): avc: denied { search } for pid=2425 comm="ipa-getkeytab" name="krb5" dev="vda2" ino=8948995 scontext=system_u:system_r:ipa_helper_t:s0 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0 Hash: ipa-getkeytab,ipa_helper_t,krb5_keytab_t,dir,search Expected results: No AVC denials Additional info: RHEL8.0 does not have the issue AVC denial is not seen when adding "-type ad" to command line