-
Notifications
You must be signed in to change notification settings - Fork 85
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
Support specified netns and userns file paths #86
Conversation
thanks, could you also update man page? (edit slirp4netns.1.md and |
cc @giuseppe |
Thank you for the feedback, working on the changes! My C coding is a bit... rusty to say the least :p |
060264a
to
97a7e2a
Compare
@@ -295,6 +309,9 @@ struct options { | |||
char *cidr; // --cidr | |||
bool enable_ipv6; // -6 | |||
char *api_socket; // -a | |||
char *netns_type; // --netns-type | |||
char *netns_path; // --netns-path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// argv[1]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah thank you
slirp4netns.1.md
Outdated
|
||
```console | ||
$ slirp4netns --userns-path=/path/to/userns ... | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this example doesn't seem needed
looks good but a couple of nits |
Allow a network namespace path to be passed instead of a PID by using the --use-netns-path argument, and passing a path as the first argument. An optional --userns-path=PATH argument can be passed that will be supersede the default user namespace path. Fixes rootless-containers#84 Signed-off-by: Gabi Beyer <Gabrielle.n.beyer@intel.com>
@giuseppe ptal |
LGTM |
Shall we release 0.3.1? 0.4.0? |
Allow a network namespace path to be passed instead of a PID by
using the --use-netns-path argument, and passing a path as the
first argument. An optional --userns-path=PATH argument can be
passed that will be supersede the default user namespace path.
Fixes #84
Signed-off-by: Gabi Beyer Gabrielle.n.beyer@intel.com