Skip to content

Commit

Permalink
rootlesskit: isolate --pidns
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Jun 2, 2019
1 parent ee411bf commit 8cb9d49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions boot/rootlesskit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ if [[ $_U7S_CHILD == 0 ]]; then
--net=slirp4netns --mtu=65520 --disable-host-loopback \
--port-driver=builtin \
--copy-up=/etc --copy-up=/run --copy-up=/var/lib --copy-up=/opt \
--pidns \
$U7S_ROOTLESSKIT_FLAGS \
$0 $@
else
Expand Down
2 changes: 1 addition & 1 deletion common/common.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function nsenter::_nsenter() {
fi
export ROOTLESSKIT_STATE_DIR=$XDG_RUNTIME_DIR/usernetes/rootlesskit
# TODO(AkihiroSuda): ping to $XDG_RUNTIME_DIR/usernetes/rootlesskit/api.sock
nsenter -U --preserve-credential -n -m -t $(cat $pidfile) --wd=$PWD -- $@
nsenter -U --preserve-credential -n -m -p -t $(cat $pidfile) --wd=$PWD -- $@
}

## overlayfs utilities
Expand Down

0 comments on commit 8cb9d49

Please sign in to comment.