RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2023462 - SELinux boolean secure_mode allows staaf SELinux users to unconfined
Summary: SELinux boolean secure_mode allows staaf SELinux users to unconfined
Keywords:
Status: CLOSED DUPLICATE of bug 2021529
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Zdenek Pytela
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-15 19:10 UTC by Amogh Kulkarni
Modified: 2021-11-17 10:31 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 07:35:41 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-102839 0 None None None 2021-11-15 19:12:00 UTC

Description Amogh Kulkarni 2021-11-15 19:10:40 UTC
Description of problem:
Secure_mode boolean should prevent confined users from transitioning to sysadm domain or switch to the root user (switch to privileged role). 

Created a brand new RHEL9 beta install.

Created a staff_u user pimpampet:

id -Z
staff_u:staff_r:staff_t:s0-s0:c0.c1023

getsebool secure_mode
secure_mode --> on

rpm -q selinux-policy
selinux-policy-34.1.16-1.el9_b.noarch

newrole -r unconfined_r
Password: 
[pimpampet@rhel9-beta ~]$ id -Z
staff_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

(RHBA-2021:4420 will install selinux-policy 3.14.3-80; more recent than the one currently available in RHEL 9.0 beta)


Steps to Reproduce:
1. Enable secure_mode boolean
2. Login as SELinux user staff_u
3. Switch with newrole to unconfined_r

Actual results:
SELinux user staff can switch to unconfined domain

Expected results:
SELinux user staff cannot switch to unconfined domain

Additional info:
Proposed fix: remove unconfined_t from unpriv_user_domain.

Comment 1 Zdenek Pytela 2021-11-16 07:35:41 UTC

*** This bug has been marked as a duplicate of bug 2021529 ***


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