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

Sd logind dontaudit unlink #2551

Merged
merged 3 commits into from
Jan 31, 2025

Conversation

zpytela
Copy link
Contributor

@zpytela zpytela commented Jan 31, 2025

No description provided.

This interface should be used only in well justified cases
as it has the power to hide problems, potentially quite big ones.
When a user login session ends, "systemd-user-runtime-dir stop" is
executed as an ExecStop action of the [email protected].
The command tries to delete the content of /run/user/UID, containing
user data with possibly any SELinux type, using an equivalent of the
"rm -rf" command. This is more like a safety action because the
/run/user/UID directory is a tmpfs mount and is unmounted afterwards
anyway, therefore the systemd_logind_t domain does not actually need
the access to read directories and unlink files of all types, so the
permissions are dontaudited instead.

Resolves: RHEL-59145
@zpytela zpytela merged commit 5aaa24e into fedora-selinux:rawhide Jan 31, 2025
3 of 4 checks passed
@zpytela zpytela deleted the sd-logind-dontaudit-unlink branch January 31, 2025 17:56
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.

1 participant