f565b2f200551b4fa38688122d8ea1e1343621bc blob 813 bytes (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| | # SPDX-License-Identifier: GPL-2.0-or-later
#
# PASST - Plug A Simple Socket Transport
# for qemu/UNIX domain socket mode
#
# PASTA - Pack A Subtle Tap Abstraction
# for network namespace/tap device mode
#
# test/pasta_options/no_pidns - Check --no-pidns handling
htools readlink
test Command is spawned in a new PID namespace by default
set PIDNS __STATEDIR__/pidns
set OUT __STATEDIR__/no-pidns.out
set ERR __STATEDIR__/no-pidns.err
passt readlink /proc/self/ns/pid > __PIDNS__
passt ./pasta -q -- readlink /proc/self/ns/pid > __OUT__ 2> __ERR__
check [ "$(cat __PIDNS__)" != "$(cat __OUT__)" ]
test --no-pidns keeps command in the caller's PID namespace
passt ./pasta -q --no-pidns -- readlink /proc/self/ns/pid > __OUT__ 2> __ERR__
check [ "$(cat __PIDNS__)" = "$(cat __OUT__)" ]
check [ ! -s __ERR__ ]
|
debug log:
solving f565b2f ...
found f565b2f in https://archives.passt.top/passt-dev/20260906131758.121019-1-christian@korneck.de/
applying [1/1] https://archives.passt.top/passt-dev/20260906131758.121019-1-christian@korneck.de/
diff --git a/test/pasta_options/no_pidns b/test/pasta_options/no_pidns
new file mode 100644
index 0000000..f565b2f
Checking patch test/pasta_options/no_pidns...
Applied patch test/pasta_options/no_pidns cleanly.
index at:
100644 f565b2f200551b4fa38688122d8ea1e1343621bc test/pasta_options/no_pidns
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).