Skip to content

sysfs support for namespaces

Eric W. Biederman containers lkml netdev 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 41 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/15kobject: Cleanup kobject_rename and !CONFIG_SYSFSfs/sysfs/dir.c include/linux/sysfs.h lib/kobject.c+17 -102 replies
2/15sysfs: Support for preventing unmounts.fs/sysfs/mount.c fs/sysfs/sysfs.h+81 -81 reply
3/15sysfs: sysfs_get_dentry add a sb parameterfs/sysfs/dir.c fs/sysfs/file.c fs/sysfs/sysfs.h+10 -71 reply
4/15sysfs: Implement __sysfs_get_dentryfs/sysfs/dir.c+39 -01 reply
5/15sysfs: Rename Support multiple superblocksfs/sysfs/dir.c+136 -571 reply
6/15Introduce sysfs_sd_setattr and fix sysfs_chmodfs/sysfs/file.c fs/sysfs/inode.c fs/sysfs/sysfs.h+18 -112 replies
7/15sysfs: sysfs_chmod_file handle multiple superblocksfs/sysfs/file.c+25 -142 replies
8/15sysfs: Make sysfs_mount static once again.fs/sysfs/mount.c fs/sysfs/sysfs.h+1 -21 reply
9/15sysfs: Implement sysfs tagged directory support.fs/sysfs/bin.c fs/sysfs/dir.c fs/sysfs/file.c +7 more+295 -3329 replies
10/15sysfs: Merge sysfs_rename_dir and sysfs_move_dirfs/sysfs/dir.c+38 -830 replies
11/15sysfs: Implement sysfs_delete_link and sysfs_rename_linkfs/sysfs/symlink.c include/linux/sysfs.h+48 -00 replies
12/15driver core: Implement tagged directory support for device classes.drivers/base/class.c drivers/base/core.c include/linux/device.h+68 -2124 replies
13/15Revert "netns: Fix device renaming for sysfs"net/core/dev.c net/core/net-sysfs.c net/core/net-sysfs.h+3 -100 replies
14/15netns: Enable tagging for net_class directories in sysfsinclude/linux/sysfs.h net/Kconfig net/core/net-sysfs.c+35 -10 replies
15/15sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairschedinclude/linux/sched.h include/linux/sysfs.h kernel/user.c +1 more+25 -00 replies

Reviews trailers per patch

10 of 15 patches have a Reviewed-by or Acked-by.

PatchTejun HeoDavid S. Miller
1/15A-b
2/15A-b A-b
3/15A-b A-b
4/15A-b A-b
5/15A-b A-b
6/15A-b A-b
7/15A-b
8/15A-b
9/15A-b A-b A-b
10/15
11/15A-b
12/15
13/15
14/15
15/15

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] sysfs support for namespaces

When multiple namespaces are in use we can get multiple kernel objects with the same name which is currently impossible to represent in sysfs. In particular directories like /sys/class/net and /sys/kernel/uids have significant problems.

Not wanting to change the user space interface and wanting to have a simple implementation where all objects are in the kobject and sysfs trees. The decision has been made to tag objects with the namespace they live in, and in a particular mount of sysfs only display objects with the tag that corresponds to the namespaces in effect when sysfs was mounted.

After the last round of reviews the mount/umount logic is significantly cleaned up and easier to maintain. From a 10,000 foot view the code and the way it functions has remained the
same since we settled on tagged directories a year or so ago. I
intend any future cleanups to be as incremental patches on top of this existing set.

Lack of these patches are keeping the generally complete network namespace work in 2.6.26 from being used and tested more heavily. Can we please get the patches merged?

These patches are based off of 2.6.26-rc8 + the -gregkh tree from last night. Hopefully that means they apply -mm -gregkh and -linux-next.

Eric