Bug 1710962
| Summary: | Confined users are unable to get AFS tokens | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Milos Malik <mmalik> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Milos Malik <mmalik> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.1 | CC: | jbilling, jsbillin, lvrabec, mmalik, plautrba, ssekidde, zpytela |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.2 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1417671 | Environment: | |
| Last Closed: | 2019-11-14 16:15:47 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: | 1778780 | ||
|
Description
Milos Malik
2019-05-16 16:12:49 UTC
# rpm -qa selinux\* openafs\* | sort
openafs-1.8.5-1.el8.x86_64
openafs-client-1.8.5-1.el8.x86_64
openafs-krb5-1.8.5-1.el8.x86_64
selinux-policy-3.14.3-24.el8.noarch
selinux-policy-targeted-3.14.3-24.el8.noarch
# ls -dZ /etc/openafs
system_u:object_r:afs_config_t:s0 /etc/openafs
# ls -dZ /etc/openafs/*
system_u:object_r:afs_config_t:s0 /etc/openafs/cacheinfo
unconfined_u:object_r:afs_config_t:s0 /etc/openafs/CellServDB
system_u:object_r:afs_config_t:s0 /etc/openafs/CellServDB.dist
system_u:object_r:afs_config_t:s0 /etc/openafs/CellServDB.local
system_u:object_r:afs_config_t:s0 /etc/openafs/ThisCell
#
# sesearch -s staff_t -t proc_afs_t -A
allow staff_usertype proc_afs_t:dir { getattr open search };
allow staff_usertype proc_afs_t:file { getattr ioctl lock open read };
# sesearch -s user_t -t proc_afs_t -A
allow user_usertype proc_afs_t:dir { getattr open search };
allow user_usertype proc_afs_t:file { getattr ioctl lock open read };
#
$ id
uid=1000(staff-user) gid=1000(staff-user) groups=1000(staff-user) context=staff_u:staff_r:staff_t:s0-s0:c0.c1023
$ aklog
aklog: Can't get information about the local cell.
$ aklog -d
aklog: Can't get information about the local cell.
$ sudo aklog
[sudo] password for staff-user:
aklog: Can't get information about the local cell.
$ sudo aklog -d
aklog: Can't get information about the local cell.
$
$ id
uid=1001(user-user) gid=1001(user-user) groups=1001(user-user) context=user_u:user_r:user_t:s0
$ aklog
aklog: Can't get information about the local cell.
$ aklog -d
aklog: Can't get information about the local cell.
$
Unfortunately, the output of aklog does not change if SELinux is set to permissive, which means that SELinux is not blocking the access.
Thank you Milos. Closing as CURRENTRELEASE. Just adding, I actually tested this with a configured OpenAFS system, and a user with a user_u context can get AFS tokens without any extra settings. Thank you, Jonathan. |