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

nsenter command path should be configurable #1065

Open
mgrzybek opened this issue Jan 23, 2025 · 0 comments
Open

nsenter command path should be configurable #1065

mgrzybek opened this issue Jan 23, 2025 · 0 comments

Comments

@mgrzybek
Copy link

Some commands can be given using arguments. However, nsenter is not. The hard-coded path is /usr/bin/nsenter, however sometimes is available at /bin/nsenter.

In the current stable version:

cmd := []string{"/usr/bin/nsenter", fmt.Sprintf("-m/proc/%d/ns/mnt", pid), "--"}

In main:

cmd = append(cmd, "/usr/bin/nsenter", fmt.Sprintf("-m/proc/%d/ns/mnt", pid), "--")

We should have a new argument called --nsenter-path so be able to configure it.

@mgrzybek mgrzybek changed the title nsenter command should be configurable nsenter command path should be configurable Jan 23, 2025
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

1 participant