Bug 1767723 - Confined users cannot access keytab
Summary: Confined users cannot access keytab
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 32
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Patrik Koncity
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1767779
TreeView+ depends on / blocked
 
Reported: 2019-11-01 08:32 UTC by Zdenek Pytela
Modified: 2020-09-03 11:25 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-09-03 11:25:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Zdenek Pytela 2019-11-01 08:32:51 UTC
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>

Comment 1 Ben Cotton 2020-02-11 17:49:46 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle.
Changing version to 32.


Note You need to log in before you can comment on or make changes to this bug.