-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix compatibility with libpam-tmpdir. #234
Conversation
By creating folder the required temporary folder. fixes #232
I understand where you're coming from, but that seems to be the wrong fix. The host setup should (mostly) not affect the target. |
Why? Some tool at some stage needs to create the directory. I was also wondering which tool would be the most appropriate. Maybe libpam-tmpdir should do it (or provider a helper tool to do that) but then I thought it won't be running at that time.
Maybe. Then all invocations of
What however should not be done is on the host operating system (at the beginning of grml-debootstrap):
Because that would disable libpam-tmpdir during all invocations of any tools running on the host operating system and not only inside the chroot. On the other hand, wouldn't it be more secure to start using libpam-tmpdir as soon as possible even inside the chroot? |
libpam-tmpdir on the host is a host thing. Its existence on the host shall not affect the chroot, which can end up on a completely different system / VM / ... I know there are some other things that today leak from the host, but I'd like to get rid of them too - at least for
I was thinking more along the lines of
No, there is no concurrent access while the chroot is built. libpam-tmpdir does not add any value during this time. Only after booting it might be useful, but this decision should be left to the user. |
Ok, very good. Lets define I would attempt a PR but wait for it until #231 is merged (otherwise merge conflict). |
Sounds like worth a try, yes :) |
Instead of $chroot, we could have sth like |
Works for me either way.
Since @mika liked the post, seems to agree with it (and I personally don't need the environment variable), I am happy to and will attempt to implement this at a later time when other PR is ready and merged to avoid merge conflicts. |
By creating folder the required temporary folder.
fixes #232