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

Address privilege dropping #1449

Merged
merged 15 commits into from Oct 20, 2021
Merged

Address privilege dropping #1449

merged 15 commits into from Oct 20, 2021

Conversation

aleixpol
Copy link
Contributor

Our sddm-helper needs to stay a root process as it's in charge of dealing with PAM. Alternatively the pam calls in PamBackend will fail.

To do so, we get helper processes to run xorg+greeter for x11-user and wayland-compositor+greeter for wayland. Obviously for general x11 don't need a helper as it runs as root.

@davidedmundson
Copy link
Member

It's a definite major regression that needs fixing before release.
My patch to drop priveleges early is flawed, I found a few modules that need pam_close_session to be as root, and it's in the documentation.

Direction wise, I don't think we have a choice, so ++

Review wise, I think we can squash a lot of these commits.

src/helper/HelperApp.cpp Show resolved Hide resolved
src/helper/HelperApp.cpp Outdated Show resolved Hide resolved
src/helper/xorguserhelper.cpp Show resolved Hide resolved
src/helper/HelperStartWayland.cpp Outdated Show resolved Hide resolved
src/helper/HelperStartWayland.cpp Outdated Show resolved Hide resolved
@aleixpol
Copy link
Contributor Author

@davidedmundson addressed your comments, I didn't fold the changes into where they were added for the cases where it was coming from the reverted code.

@yan12125
Copy link

This PR seems to break login for rootless X11. I got the following error from journalctl:

Failed to take control of /dev/tty7: Operation not permitted

@aleixpol
Copy link
Contributor Author

This PR seems to break login for rootless X11

Would you be able to create an issue and provide how you have it configured so I can reproduce and address it?

@aleixpol aleixpol deleted the fix_priv_drop branch October 21, 2021 16:16
@yan12125
Copy link

Ah, someone beats me :) #1456

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

4 participants