[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA++M5eJsCo8Hk5VPOJnqiaV3J5+23UANY+mg=GinncGMpA0VsA@mail.gmail.com>
Date: Mon, 8 May 2023 20:05:37 +0500
From: Bilal Khan <bilalkhanrecovered@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: majordomo@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH] Fix: Preserve /sys hierarchy in network namespaces
Dear Maintainer,
I have come across an issue with the way network namespaces are
created by ip-netns(8) in Ubuntu 18.04.4 LTS. The problem occurs when
the /sys hierarchy, particularly /sys/fs/cgroup, is not properly
mounted within network namespaces. This issue can be traced back to
the netns_switch() function in the lib/namespace.c file, where /sys is
explicitly unmounted and mounted again.
I have created a patch to fix this issue, which removes the calls to
umount2() and mount() related to the /sys filesystem in the
netns_switch() function. The patch file is named
0001-Fix-Preserve-sys-hierarchy-in-network-namespaces-by-.patch, and I
have attached it to this email.
By applying this patch, the /sys hierarchy should be preserved within
network namespaces, and the reported bug should be resolved. Please
review the patch and consider merging it into the main codebase.
Best regards,
Bilal
View attachment "0001-Fix-Preserve-sys-hierarchy-in-network-namespaces-by-.patch" of type "text/x-patch" (1540 bytes)
Powered by blists - more mailing lists