Skip to content
Snippets Groups Projects
  • Rich Lane's avatar
    54615659
    mnexec: mount sysfs in each container · 54615659
    Rich Lane authored
    The sysfs filesystem is [tagged][1] with a set of namespaces when mounted, taken
    from the mounting process. Among other things, this controls which network
    devices will show up in /sys/class/net and /sys/class/net/bonding_masters.
    
    Without this change, mininet will not mount sysfs in a node. Attempting to
    configure a bond interface in a node will only affect the parent namespace.
    
    This change mounts a new sysfs filesystem in each node. To prevent this mount
    from affecting the parent namespace the mount namespace is also unshared.
    
    [1]: https://www.kernel.org/doc/Documentation/filesystems/sysfs-tagging.txt
    54615659
    History
    mnexec: mount sysfs in each container
    Rich Lane authored
    The sysfs filesystem is [tagged][1] with a set of namespaces when mounted, taken
    from the mounting process. Among other things, this controls which network
    devices will show up in /sys/class/net and /sys/class/net/bonding_masters.
    
    Without this change, mininet will not mount sysfs in a node. Attempting to
    configure a bond interface in a node will only affect the parent namespace.
    
    This change mounts a new sysfs filesystem in each node. To prevent this mount
    from affecting the parent namespace the mount namespace is also unshared.
    
    [1]: https://www.kernel.org/doc/Documentation/filesystems/sysfs-tagging.txt
Code owners
Assign users and groups as approvers for specific file changes. Learn more.