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

enter: pass nsactions array rather than path array #102

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

Snaipe
Copy link
Member

@Snaipe Snaipe commented Nov 28, 2024

Before this commit, we used to construct shared namespace paths purely from string operations; that is, --share pid,mnt=/foo would be reconstructed as --share pid=/foo/pid --share mnt=/foo/mnt. The problem with this approach is that this doesn't work well with magic links to file descriptors in /proc.

Instead, we now open the directory path and use its file descriptor to open further nsfs files.

@yabberyabber
Copy link
Collaborator

I tried using the auto-merge but it looks like it broke the build. I have a fix locally but I'm not authorized to push it to Snaipe's fork. Probably better to use a rebase than a merge commit anyways.

Before this commit, we used to construct shared namespace paths purely
from string operations; that is, --share pid,mnt=/foo would be
reconstructed as --share pid=/foo/pid --share mnt=/foo/mnt. The problem
with this approach is that this doesn't work well with magic links to
file descriptors in /proc.

Instead, we now open the directory path and use its file descriptor to
open further nsfs files.
@Snaipe Snaipe merged commit 4fb17a9 into aristanetworks:main Dec 2, 2024
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants