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

Evaluate if fix_pam_bug is still needed #404

Closed
hyperknot opened this issue May 9, 2017 · 6 comments
Closed

Evaluate if fix_pam_bug is still needed #404

hyperknot opened this issue May 9, 2017 · 6 comments

Comments

@hyperknot
Copy link
Collaborator

Can someone look into why was this needed back then and if we still need this now? I am not using this, nor I'm using SSH so I have no idea what does it fix.

This introduces a crazy amount of apt-get dependencies, some of which are not removed by that hack of a remove list (still made for 14.04) and the autoremove command.

A better approach would be to save a dpkg -l list before and after and make a loop of apt-get purge commands to make sure there are no leftover dependencies and config files after this script.

Actually this is one of the reasons why I've started my fork, so that I can avoid using this monster of build process, and if it's not needed anymore I'd recommend removing it.

@hyperknot hyperknot added this to the 0.9.22 milestone May 9, 2017
@Theaxiom
Copy link
Collaborator

Theaxiom commented May 9, 2017

I agree, some research will be required to determine if this is necessary or not.

@kingdonb
Copy link
Collaborator

kingdonb commented May 9, 2017

I worked on a related issue and I believe that PAM version has not changed in 16.04 since the issue was first identified. I honestly have no idea what the original PAM bug encountered was, but there is a documentation chain that you can follow to hopefully try and reproduce the original issue.

I second the idea of fixing the gross dependency blob, the original package version of PAM has not changed, but it has moved from one Ubuntu repository to another and it is likely that second order build dependencies have changed (and will change again.)

This is an incredibly complicated build because of dependencies, there is no denying it. I would suggest making the fix optional with a flag set at build time in the Dockerfile. Having no concept of the severity or impact of the bug, I can't really make a judgement about whether it's a good idea to remove the build.

If you're not using SSH it probably won't affect you at all (other than making the build take longer.) But since SSH is one of the key features of Baseimage, that's not at all convincing to me...

Git blame shows the issue came from #181 and was fixed in 3edd5d1 and affects users of chpasswd among probably some other PAM consumers, and possibly also isolated to particular version of Docker.

@Theaxiom Theaxiom modified the milestones: 0.9.22, 0.9.23 May 17, 2017
@mrmagooey
Copy link

The PAM bug seems to have been fixed in 2014 moby/moby#7179. Why #181 had it come up again might be due to that user having an older host kernel (3.15) and an out-of-date docker version. From what I can see this build step could be safely removed.

@hyperknot
Copy link
Collaborator Author

hyperknot commented Jul 12, 2017 via email

@hyperknot
Copy link
Collaborator Author

PR: #431

@kingdonb
Copy link
Collaborator

Looks like this may be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants