diff options
Diffstat (limited to 'linuxnamespaces')
-rw-r--r-- | linuxnamespaces/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py index 0af6dee..aff620e 100644 --- a/linuxnamespaces/__init__.py +++ b/linuxnamespaces/__init__.py @@ -446,6 +446,9 @@ def populate_dev( if tun: directories.add("net") files.add("net/tun") + bind_mounts["net/tun"] = exitstack.enter_context( + open_tree(origdev / "net/tun", OpenTreeFlags.OPEN_TREE_CLONE) + ) mount( "devtmpfs", newdev, |