Bug 1922450
Summary: | staff_u users can utilize newrole, resulting in ability to access su directly | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Ryan Mullett <rmullett> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED NOTABUG | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 8.3 | CC: | jafiala, lagordon, lvrabec, mmalik, plautrba, ssekidde, wdh, zpytela |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-03-25 16:42:57 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
Ryan Mullett
2021-01-29 18:35:04 UTC
There are 2 ways for staff_u users how to get the sysadm_r role: using sudo or newrole. The scenario described in the bz is a correct way, after the change sysadm_r role should be allowed run su. This is not a bug. It looks it is the documentation which needs improving as there is only one line containing staff_u together with staff_r and staff_t which does not cover changing users roles. Thank you for reporting it. Also note the user part of context cannot be changed. "There are 2 ways for staff_u users how to get the sysadm_r role: using sudo or newrole." Well, there is a third option; I can login using userx/sysadm_r.com. (when the boolean ssh_sysadm_login is enabled) The problem reported in this bz is not a selinux-policy bug. The documentation ambiguity will eventually be addressed by distinguishing between users and roles. |