Improve share-ns doc
This commit is contained in:
parent
dffe5d150c
commit
92b37dfee1
1 changed files with 13 additions and 4 deletions
|
|
@ -4,11 +4,20 @@
|
||||||
doc = ''
|
doc = ''
|
||||||
Removes the call to `--unshare-` for the provided namespace.
|
Removes the call to `--unshare-` for the provided namespace.
|
||||||
|
|
||||||
By default, jail-nix unshares all namespaces, calling `share-ns "pid"`
|
By default, jail-nix unshares all namespaces, this combinator allows you to
|
||||||
will remove the `--unshare-pid` flag from bwrap which will allow this
|
remove the unshare, allowing the jailed app access to the specified host
|
||||||
process to share the same pid namespace as the host.
|
namespace.
|
||||||
|
|
||||||
See BWRAP(1) for more information.
|
For instance, calling `share-ns "pid"` will remove the `--unshare-pid` flag
|
||||||
|
from bwrap which will allow this process to share the same pid namespace as
|
||||||
|
the host.
|
||||||
|
|
||||||
|
The valid namespaces that can be passed to this combinator are: `"cgroup"`
|
||||||
|
`"ipc"` `"net"` `"pid"` `"user"`, and `"uts"`.
|
||||||
|
|
||||||
|
See [wikipedia:Linux
|
||||||
|
namespaces](https://en.wikipedia.org/wiki/Linux_namespaces) for more
|
||||||
|
information.
|
||||||
'';
|
'';
|
||||||
impl =
|
impl =
|
||||||
namespace: state:
|
namespace: state:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue