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
pam_systemd: set environment variables even if 'Already running in a session or user slice' #15231
Comments
I'm not sure there should be a new session because the UID does not change. Did you use Maybe |
I am not suggesting to create a new session.
They do indeed prevent the environment from being cleaned.
This feels to me like outsourcing a fix. |
Is there a change in behaviour, did this work with earlier versions of systemd?
I'm just probing if this is a problem with newrole, systemd or if there is a bug at all. |
what does newrole do? flush env block, change selinux context, re-invoke PAM session hooks? why does it do the env block flushing and re-invoking of PAM session hooks? |
This is however what happens when newrole is compiled with
I'm pretty new to SELinux, but the idea is that the user account may have been assigned several SELinux roles, but only one of them is enabled when logged in. Then the user would switch the role with The switch to the new SELinux role can be authenticated with PAM modules. I'm not sure what is the purpose of the env clearing (there's specific code to handle some traditional variables, so why not newer |
XDG_RUNTIME_DIR is required for systemctl --user to work. See systemd/systemd#15231 Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
XDG_RUNTIME_DIR is required for systemctl --user to work. See systemd/systemd#15231 Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
XDG_RUNTIME_DIR is required for systemctl --user to work. See systemd/systemd#15231 Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
XDG_RUNTIME_DIR is required for systemctl --user to work. See systemd/systemd#15231 Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
systemd version the issue has been seen with
Used distribution
Expected behaviour you didn't see
Unexpected behaviour you saw
Steps to reproduce the problem
newrole(1)
pam_systemd logs in debug mode:
Resulting environment:
Connecting to user instance:
Setting
XDG_RUNTIME_DIR
manually:Connecting to user instance:
The text was updated successfully, but these errors were encountered: