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.
Filipe,
Solution for thiz bz will somehow clash with the generic solution of bz#1874527 as there already is an unnamed transition:
files_tmp_filetrans(kpropd_t, krb5kdc_tmp_t, { file dir })
I suppose kpropd uses tmp files/dirs for other reasons than rcache, too; is the filename predictable in these cases?
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-2021:1639
Description of problem: The kprop (kprop is used to securely propagate a Kerberos V5 database dump file) command creates /var/tmp/krb5_0.rcache2 with a wrong context. Version-Release number of selected component (if applicable): RHEL-8.3 selinux-policy-targeted-3.14.3-53.el8.noarch krb5-libs-1.18.2-5.el8 How reproducible: always Steps to Reproduce: 1.Configure krb5 server on PC1 sed -i "s/\[libdefaults\]/[libdefaults]\n default_realm = REDHAT.COM/" /etc/krb5.conf sed -i "s/\[realms\]/[realms]\n REDHAT.COM = {\n kdc = $(hostname) \n admin_server = $(hostname)\n }/" /etc/krb5.conf sed -i "s/\[domain_realm\]/[domain_realm]\n .$(hostname -d) = REDHAT.COM\n $(hostname -d) = REDHAT.COM/" /etc/krb5.conf sed -i 's/EXAMPLE.COM/REDHAT.COM/' /var/kerberos/krb5kdc/kdc.conf sed -i 's/EXAMPLE\.COM/REDHAT.COM/' /var/kerberos/krb5kdc/kadm5.acl add IP and hostname of PC2 into /etc/hosts kdb5_util create -s -P passwd systemctl start kadmin krb5kdc kadmin.local -q "addprinc -pw bob bob/admin kadmin.local -q "addprinc -randkey host/$(hostname)" kadmin.local -q "ktadd host/$(hostname)" kdb5_util dump /var/kerberos/krb5kdc/replica_datatrans 2.Configure krb5 client on PC2 sed -i "s/\[libdefaults\]/[libdefaults]\n default_realm = REDHAT.COM/" /etc/krb5.conf sed -i "s/\[realms\]/[realms]\n REDHAT.COM = {\n kdc = $hostname_PC1 \n admin_server = hostname_PC1\n }/" /etc/krb5.conf sed -i "s/\[domain_realm\]/[domain_realm]\n .$(hostname -d) = REDHAT.COM\n $(hostname -d) = REDHAT.COM/" /etc/krb5.conf sed -i 's/EXAMPLE.COM/REDHAT.COM/' /var/kerberos/krb5kdc/kdc.conf sed -i 's/EXAMPLE\.COM/REDHAT.COM/' /var/kerberos/krb5kdc/kadm5.acl add IP and hostname of PC1 into /etc/hosts kadmin -p bob/admin -w bob -q "addprinc -randkey host/$(hostname)" kadmin -p bob/admin -w bob -q "ktadd host/$(hostname)@REDHAT.COM" echo "host/$hostname_PC1" > /var/kerberos/krb5kdc/kpropd.acl service kprop start 3. PC1 kprop $hostname_PC2 Actual results PC2: # ll -Z /var/tmp/ -rw-------. 1 root root system_u:object_r:krb5kdc_tmp_t:s0 3920 Sep 8 12:48 krb5_0.rcache2 Expected results: -rw-------. 1 root root system_u:object_r:krb5_host_rcache_t:s0 2176 Sep 8 12:43 krb5_0.rcache2