diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-12 22:24:08 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-13 05:31:51 +0200 |
commit | ef6da157324bfc64a416b7ab419fdc5b9849a8b1 (patch) | |
tree | ecb94ac63ebdc9326fbd3a11290d77a4f1142698 /test/passt_in_ns | |
parent | eed17a47fe8291d449fd505d9a6b1f4a72be8d09 (diff) | |
download | passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.tar passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.tar.gz passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.tar.bz2 passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.tar.lz passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.tar.xz passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.tar.zst passt-ef6da157324bfc64a416b7ab419fdc5b9849a8b1.zip |
Allow --userns when pasta spawns a command
Currently --userns is only allowed when pasta is attaching to an existing
netns or PID, and is prohibited when creating a new netns by spawning a
command or shell.
With the new handling of userns, this check isn't neccessary. I'm not sure
if there's any use case for --userns with a spawned command, but it's
strictly more flexible and requires zero extra code, so we might as well.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/passt_in_ns')
0 files changed, 0 insertions, 0 deletions