Bug 1767723
| Summary: | Confined users cannot access keytab | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Zdenek Pytela <zpytela> |
| Component: | selinux-policy | Assignee: | Patrik Koncity <pkoncity> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 32 | CC: | dwalsh, lvrabec, mgrepl, pkoncity, plautrba, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-09-03 11:25:49 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: | 1767779 | ||
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32. |
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>