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

Bind mount /proc/ in container contains hostOS information #2239

Open
alexgg opened this issue Feb 13, 2024 · 1 comment
Open

Bind mount /proc/ in container contains hostOS information #2239

alexgg opened this issue Feb 13, 2024 · 1 comment

Comments

@alexgg
Copy link
Contributor

alexgg commented Feb 13, 2024

When the supervisor mount the /proc filesystem into a container it justs bind mounts the host's /proc into the container. This is wrong as it will expose incorrect information like PIDs from the hostOS that are invalid in the container and might confuse some applications.

A workaround is for the container to instead mount a new /proc filesystem but it requires CAP_SYS_ADMIN capabilities to mount:

$ mount none -t procfs /proc

Relates-to: https://balena.zendesk.com/agent/tickets/2728

@pipex
Copy link
Contributor

pipex commented Mar 7, 2024

This is a good point, we might need to deprecate this label at some point.

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