lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ