Public bug reported:

Filesystems ordinarily mounted beneath /sys, particularly /sys/fs/cgroup, are 
not mounted within network namespaces created by ip-netns(8), as 
lib/namespace.c:netns_switch() explicitly remounts /sys.
The patch enclosed removes the offending calls to umount2(2) and mount(2), 
leaving the /sys hierarchy intact within network namespaces.

$ lsb_release -rd
Description:    Ubuntu 18.04.4 LTS
Release:        18.04

$ apt-cache policy iproute2
iproute2:
  Installed: 4.15.0-2ubuntu1
  Candidate: 4.15.0-2ubuntu1
  Version table:
 *** 4.15.0-2ubuntu1 500
        500 http://fr2.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

Nota bene: this bug was reported in [1] (unresolved) and, on Arch Linux,
[2].

References:
[1] https://answers.launchpad.net/ubuntu/+source/iproute2/+question/659146
[2] https://bugs.archlinux.org/task/33328

** Affects: iproute2 (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "iproute2-4.3.0+no-remount-sysfs.patch"
   
https://bugs.launchpad.net/bugs/1870554/+attachment/5345647/+files/iproute2-4.3.0+no-remount-sysfs.patch

** Patch removed: "iproute2-4.3.0+no-remount-sysfs.patch"
   
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1870554/+attachment/5345647/+files/iproute2-4.3.0+no-remount-sysfs.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1870554

Title:
  ip-netns(8) unmounts /sys filesystem hierarchy within namespace

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/iproute2/+bug/1870554/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to