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

--privileged container required for unprivileged container #30

Open
marcellourbani opened this issue Mar 16, 2024 · 3 comments
Open

--privileged container required for unprivileged container #30

marcellourbani opened this issue Mar 16, 2024 · 3 comments

Comments

@marcellourbani
Copy link

Thank you for this tool, very intriguing
I had a go with one of my containers (which does have a shell, but was a good guinea pig regardless)
All runs fine with --privileged (tried vim, which was not installed in target), and even without for the distroless created below but not in my old one, even if not privileged. Not a big deal for me, but worth noting

image

@iximiuz
Copy link
Owner

iximiuz commented Mar 16, 2024

Hi Marcello! Thanks for giving it a try! It's a known limitation - there is an F.A.Q item about it. However, what I should probably do is start suggesting the --privileged flag when the command fails with the above error.

@marcellourbani
Copy link
Author

marcellourbani commented Mar 16, 2024 via email

@iximiuz
Copy link
Owner

iximiuz commented Mar 18, 2024

Yes, you're right. It's rather an inverse case compared to that FAQ item. By default, the sidecar "inherits" the permissions of the target container, so if the target is not privileged enough, the sidecar won't be able to initialize properly w/o its own escalation. And after writing that, I think the original FAQ item needs to be replaced because it's likely not valid anymore.

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

2 participants