Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: Confined users trigger AVC denial trying to access a keytab Version-Release number of selected component (if applicable): selinux-policy-3.14.5-11.fc32.noarch How reproducible: always Steps to Reproduce: 1. log in as a confined user user_u, staff_u, sysadm_t 2. start an ssh connection Actual results: AVC is logged: ---- type=PROCTITLE msg=audit(11/01/19 09:23:20.729:2797) : proctitle=ssh localhost type=PATH msg=audit(11/01/19 09:23:20.729:2797) : item=0 name=/var/kerberos/krb5/user/1003/client.keytab nametype=UNKNOWN cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 type=CWD msg=audit(11/01/19 09:23:20.729:2797) : cwd=/home/staff type=SYSCALL msg=audit(11/01/19 09:23:20.729:2797) : arch=x86_64 syscall=openat success=no exit=EACCES(Permission denied) a0=0xffffff9c a1=0x55a1d1f529d0 a2=O_RDONLY a3=0x0 items=1 ppid=36319 pid=36363 auid=staff uid=staff gid=staff euid=staff suid=staff fsuid=staff egid=staff sgid=staff fsgid=staff tty=pts1 ses=218 comm=ssh exe=/usr/bin/ssh subj=staff_u:staff_r:ssh_t:s0-s0:c0.c1023 key=(null) type=AVC msg=audit(11/01/19 09:23:20.729:2797) : avc: denied { search } for pid=36363 comm=ssh name=krb5 dev="dm-0" ino=130115 scontext=staff_u:staff_r:ssh_t:s0-s0:c0.c1023 tcontext=system_u:object_r:krb5_keytab_t:s0 tclass=dir permissive=0 Expected results: No AVC Additional info: sesearch -A -s ssh_t -t krb5_keytab_t -c dir -p search <empty> sesearch -A -s ssh_t -t krb5_keytab_t -c file <empty>
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.
Solved here: https://github.com/fedora-selinux/selinux-policy/commit/4c86f565d0fc14850250fd182aafbda0c69c48a1