From 127be9bba17993ff84872a27ab172f4eaf345a14 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 21 Feb 2024 13:46:52 +0100 Subject: fix logic error in populate_sys Fixes: 1de72653e0b9 ("add function linuxnamespaces.populate_sys") --- linuxnamespaces/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- cgit v1.2.3