summaryrefslogtreecommitdiff
path: root/linuxnamespaces
diff options
context:
space:
mode:
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(