jail: prepare for adding process to existing namespace
authorDaniel Golle <daniel@makrotopia.org>
Sat, 4 Sep 2021 20:42:43 +0000 (21:42 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 15 Sep 2021 20:43:33 +0000 (21:43 +0100)
commita23c888729a41aef0b83dd18679e96dce49141ba
treedadc3486a385d3c25698364ffafa27e2eb3a70f8
parentf16abe029e1c2823760adf1421daa0f14fa512ec
jail: prepare for adding process to existing namespace

Introduce '-j' option to ujail which allows joining namespaces of
(a) existing process(es). Usage:
ujail -j <pid>:<nstype>[,<nstype>[,...]]

In order to join namespaces of different processes the '-j' option can
be used multiple times.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c