buildroot: unshare the network
Run the container in a new network namespace, to isolate the host's network from that of the container. Stages, assemblers and the tools they execute are not supposed to assume network access is available and this isolation will make sure of that.
This commit is contained in:
parent
785f843901
commit
c5925fd185
1 changed files with 1 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ class BuildRoot(contextlib.AbstractContextManager):
|
|||
"--setenv", "PYTHONPATH", "/run/osbuild/lib",
|
||||
"--unshare-ipc",
|
||||
"--unshare-pid",
|
||||
"--unshare-net"
|
||||
]
|
||||
|
||||
cmd += mounts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue