Commit a382a34
selftests/vsock: change tests to respect write-once child ns mode
The child_ns_mode sysctl parameter becomes write-once in a future patch
in this series, which breaks existing tests. This patch updates the
tests to respect this new policy. No additional tests are added.
Add "global-parent" and "local-parent" namespaces as intermediaries to
spawn namespaces in the given modes. This avoids the need to change
"child_ns_mode" in the init_ns. nsenter must be used because ip netns
unshares the mount namespace so nested "ip netns add" breaks exec calls
from the init ns. Adds nsenter to the deps check.
Reviewed-by: Stefano Garzarella <[email protected]>
Signed-off-by: Bobby Eshleman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>1 parent 97f87e5 commit a382a34
1 file changed
Lines changed: 21 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
237 | 242 | | |
238 | 243 | | |
239 | 244 | | |
| 245 | + | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
287 | 294 | | |
288 | 295 | | |
289 | 296 | | |
290 | | - | |
| 297 | + | |
291 | 298 | | |
292 | 299 | | |
293 | 300 | | |
| |||
1231 | 1238 | | |
1232 | 1239 | | |
1233 | 1240 | | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
| 1241 | + | |
1238 | 1242 | | |
1239 | | - | |
1240 | 1243 | | |
1241 | 1244 | | |
1242 | 1245 | | |
| |||
1246 | 1249 | | |
1247 | 1250 | | |
1248 | 1251 | | |
1249 | | - | |
1250 | | - | |
| 1252 | + | |
| 1253 | + | |
1251 | 1254 | | |
1252 | 1255 | | |
1253 | 1256 | | |
1254 | 1257 | | |
1255 | 1258 | | |
1256 | | - | |
1257 | | - | |
1258 | 1259 | | |
1259 | 1260 | | |
1260 | 1261 | | |
| |||
0 commit comments