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

pam_start should not be called from inside chroot in start-stop-daemon #544

Closed
sijanec opened this issue Aug 26, 2022 · 2 comments
Closed

Comments

@sijanec
Copy link

sijanec commented Aug 26, 2022

This is a followup to a PR I made regarding this issue, and I'd like to hear some comment.

In Gentoo's OpenRC (very close to upstream), pam_start(3) is called after chroot(2), so the process is unable to find the files required for PAM, as you can see on this strace output with unmodified start-stop-daemon: http://of.sijanec.eu/krneki/strace.txt

With a modified start-stop-daemon, chroot is correctly executed after pam_start and services utilizing --chroot option work.

On current release, --chroot is broken unless PAM files are mounted in the chroot, which might even be a security issue.

Related PR is #517, #517

@sijanec
Copy link
Author

sijanec commented Aug 26, 2022

Closing issue that was created due to a duplicate POST request, likely due to slow internet connection on submitter side.

@sijanec sijanec closed this as not planned Won't fix, can't repro, duplicate, stale Aug 26, 2022
@sijanec
Copy link
Author

sijanec commented Aug 26, 2022

P. S.: See issue #543 - this one is still open. Again, sorry for the duplicate and confusion.

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

No branches or pull requests

1 participant