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.

Bug 1857253

Summary: saslauthd cannot write into reply cache (/var/tmp/krb5_0.rcache2) due to security context
Product: Red Hat Enterprise Linux 8 Reporter: Filip Dvorak <fdvorak>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: fcami, lmiksik, lvrabec, mmalik, mpolovka, plautrba, rcritten, rharwood, ssekidde, zpytela
Target Milestone: rcKeywords: Regression, TestBlocker
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-27 16:17:43 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1842946    

Description Filip Dvorak 2020-07-15 14:31:58 UTC
Description of problem:

After recent rebase of krb5 (1.17 -> 1.18) in RHEL-8.3.0 saslauthd can not write into krb5cache file /var/tmp/krb5_0.rcache2. The similar issue is here BZ#1841488.

Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-48.el8.noarch
krb5-server-1.18.2-3.el8

How reproducible:

100%

Steps to Reproduce:

1.Configure krb5-server with user admin, "kinit admin"
2.Configure /etc/sysconfig/saslauthd 

MECH=kerberos5
KRB5_KTNAME=/etc/krb5.keytab

3.testsaslauthd -s login -u admin -p pasword

Actual results:

testsaslauthd -s login -u admin -p pasword
0: NO "authentication failed"

AVC message:
time->Sat Jul  4 10:25:12 2020
type=PROCTITLE msg=audit(1593872712.917:1396): proctitle=2F7573722F7362696E2F7361736C6175746864002D6D002F72756E2F7361736C6175746864002D61006B65726265726F7335
type=PATH msg=audit(1593872712.917:1396): item=1 name="/var/tmp/krb5_0.rcache2" inode=134921735 dev=fd:00 mode=0100600 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:smbd_tmp_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0
type=PATH msg=audit(1593872712.917:1396): item=0 name="/var/tmp/" inode=134299376 dev=fd:00 mode=041777 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:tmp_t:s0 nametype=PARENT cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0
type=CWD msg=audit(1593872712.917:1396): cwd="/run/saslauthd"

type=SYSCALL msg=audit(1593872712.917:1396): arch=c0000015 syscall=286 success=no exit=-13 a0=ffffffffffffff9c a1=1001afc57c0 a2=8042 a3=180 items=2 ppid=73216 pid=73217 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="saslauthd" exe="/usr/sbin/saslauthd" subj=system_u:system_r:saslauthd_t:s0 key=(null)
type=AVC msg=audit(1593872712.917:1396): avc:  denied  { write } for  pid=73217 comm="saslauthd" name="krb5_0.rcache2" dev="dm-0" ino=134921735 scontext=system_u:system_r:saslauthd_t:s0 tcontext=system_u:object_r:smbd_tmp_t:s0 tclass=file permissive=0

Expected results:
testsaslauthd should work, no AVC

Comment 1 Rob Crittenden 2020-07-15 15:54:36 UTC
This is affecting IdM test execution. Marking as TestBlocker for IdM and adding Regression based on c#0.

Comment 14 Zdenek Pytela 2020-07-27 16:17:43 UTC
This bug will be eventually resolved together with other similar bugs.
Closing as a dup of bz#1848953 which contains the most of information.

*** This bug has been marked as a duplicate of bug 1848953 ***