Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not allow staff user the unconfined role in secure_mode #948

Open
wants to merge 1 commit into
base: rawhide
Choose a base branch
from

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Nov 19, 2021

The user in the staff_r role was allowed to switch to the unconfined
role regardless of the secure_mode boolean setting when specified as an
argument for the sudo command:

staff$ sudo -r unconfined_r -i
staff$ sudo -r unconfined_r id

This commit allows to change it only when secure_mode is off.

Resolves: rhbz#2022763

Previously, the user in the staff_r role was allowed to switch to the
unconfined role regardless of the secure_mode boolean setting when
specified as an argument for the sudo command:

staff$ sudo -r unconfined_r -i
staff$ sudo -r unconfined_r id

This commit allows to change it only when secure_mode is off.

Resolves: rhbz#2022763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant