summaryrefslogtreecommitdiff
path: root/linuxnamespaces
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-02-21 13:46:52 +0100
committerHelmut Grohne <helmut@subdivi.de>2024-02-21 13:46:52 +0100
commit127be9bba17993ff84872a27ab172f4eaf345a14 (patch)
tree5ddcbb428682d200429153930d8a55202b34a705 /linuxnamespaces
parentc11c4ae45c511d33b9fd7b616a57fb4a0392d3d8 (diff)
downloadpython-linuxnamespaces-127be9bba17993ff84872a27ab172f4eaf345a14.tar.gz
fix logic error in populate_sys
Fixes: 1de72653e0b9 ("add function linuxnamespaces.populate_sys")
Diffstat (limited to 'linuxnamespaces')
-rw-r--r--linuxnamespaces/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py
index 9c82b22..be3dd8d 100644
--- a/linuxnamespaces/__init__.py
+++ b/linuxnamespaces/__init__.py
@@ -368,7 +368,7 @@ def populate_sys(
OpenTreeFlags.OPEN_TREE_CLONE | OpenTreeFlags.AT_RECURSIVE,
),
)
- if rootcgroup:
+ if not rootcgroup:
mount_setattr(cgfd, True, MountAttrFlags.RDONLY)
if module:
modfd = exitstack.enter_context(