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

selinux: Move update-motd out of cockpit_ws_t #21332

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

martinpitt
Copy link
Member

This script has nothing to do with cockpit-ws, so stop putting it into the same security domain. We don't need to introduce a new one, just use the standard shell_exec_t. It's just a short-lived helper script with no user input, this doesn't justify its own policy.

This may also help with certain configurations where hostname wants to read /proc.

https://bugzilla.redhat.com/show_bug.cgi?id=2274774

This script has nothing to do with cockpit-ws, so stop putting it into
the same security domain. We don't need to introduce a new one, just use
the standard `shell_exec_t`. It's just a short-lived helper script with
no user input, this doesn't justify its own policy.

This may also help with certain configurations where `hostname` wants to
read /proc.

https://bugzilla.redhat.com/show_bug.cgi?id=2274774
@martinpitt martinpitt merged commit 721ec51 into cockpit-project:main Nov 26, 2024
83 of 85 checks passed
@martinpitt martinpitt deleted the update-motd-context branch November 26, 2024 16:28
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.

2 participants