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: Allow cockpit-session to write user's home #18173

Merged
merged 1 commit into from Jan 13, 2023

Conversation

martinpitt
Copy link
Member

pam_google_authenticator creates a new ~/.google_authenticator.TMPSUFFIX and renames it.

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


See https://bugzilla.redhat.com/show_bug.cgi?id=2157901#c6 for how I reproduced and tested this. We don't have the google-authenticator package on our images, and the OTP token computation also is quite complicated to automate.

pam_google_authenticator creates a new ~/.google_authenticator.TMPSUFFIX
and renames it.

https://bugzilla.redhat.com/show_bug.cgi?id=2157901
@martinpitt martinpitt temporarily deployed to cockpit-dist January 13, 2023 12:31 — with GitHub Actions Inactive
Copy link
Contributor

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would have been nicer if pam_google_authenticator created the required temp file in /tmp

@martinpitt
Copy link
Member Author

@jelly : That's not possible for atomic replacement, it must be in the same directory. Otherwise $HOME and /tmp (or any other place) could be on different mounts, then you can't rename().

@martinpitt martinpitt merged commit 160116b into cockpit-project:main Jan 13, 2023
41 checks passed
@martinpitt martinpitt deleted the google-auth-selinux branch January 13, 2023 15:50
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

2 participants