Bug 1691351
Summary: | Cannot execute "sudo su" when user is confined to staff_u or sysadm_u | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Milos Malik <mmalik> |
Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.0 | CC: | lvrabec, mmalik, plautrba, rmetrich, ssekidde, zpytela |
Target Milestone: | rc | ||
Target Release: | 8.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1688887 | Environment: | |
Last Closed: | 2019-11-05 22:11:10 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: | 1673107 | ||
Bug Blocks: | 1778780 |
Description
Milos Malik
2019-03-21 13:12:08 UTC
When I run the reproducer in permissive mode, it generates a lot of SELinux denials. When these denials are processed by audit2allow, the output is: #============= staff_sudo_t ============== allow staff_sudo_t lastlog_t:file { open read write }; allow staff_sudo_t security_t:security compute_av; allow staff_sudo_t self:netlink_selinux_socket { bind create }; allow staff_sudo_t self:passwd rootok; #============= sysadm_sudo_t ============== allow sysadm_sudo_t lastlog_t:file { open read write }; allow sysadm_sudo_t security_t:security compute_av; allow sysadm_sudo_t self:netlink_selinux_socket { bind create }; allow sysadm_sudo_t self:passwd rootok; I have never seen an AVC with 'rootok' permission. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3547 |