linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Show virtualized dentry root in mountinfo for cgroupfs
@ 2016-04-17 20:04 serge.hallyn
  2016-04-17 20:04 ` [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen serge.hallyn
  2016-04-17 20:04 ` [PATCH 2/2] mountinfo: implement show_path for kernfs and cgroup serge.hallyn
  0 siblings, 2 replies; 19+ messages in thread
From: serge.hallyn @ 2016-04-17 20:04 UTC (permalink / raw)
  To: linux-kernel
  Cc: adityakali, tj, linux-api, containers, cgroups, akpm, ebiederm,
	gregkh, lizefan, hannes

With the current cgroup namespace patches, the root dentry path of a
mount as shown in /proc/self/mountinfo is the full global cgroup
path.  It is common for userspace to use /proc/self/mountinfo to
search for cgroup mountpoints, and expect the root dentry path to
relate to the cgroup paths in /proc/self/cgroup.  Patch 2 in this
set therefore virtualizes the root dentry path relative to the
reader's cgroup namespace root.

Patch 1 fixes a bug in kernfs_path_from_node_locked() which is
exposed by patch 2.

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-05-03 14:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-17 20:04 Show virtualized dentry root in mountinfo for cgroupfs serge.hallyn
2016-04-17 20:04 ` [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen serge.hallyn
2016-04-20 19:43   ` Tejun Heo
2016-05-02 16:32     ` Tejun Heo
2016-05-02 16:41       ` Greg KH
2016-04-17 20:04 ` [PATCH 2/2] mountinfo: implement show_path for kernfs and cgroup serge.hallyn
2016-04-18  4:11   ` Serge E. Hallyn
2016-04-18  5:29     ` [PATCH 3/2] cgroup_show_path: use a new helper to get current cgns css_set Serge E. Hallyn
2016-04-29 21:42       ` Serge E. Hallyn
2016-05-02 16:35         ` Tejun Heo
2016-05-03 14:26           ` Serge E. Hallyn
2016-04-19  1:12     ` [PATCH 2/2] mountinfo: implement show_path for kernfs and cgroup Eric W. Biederman
2016-04-19  1:44       ` Serge E. Hallyn
2016-04-19  4:05         ` Serge E. Hallyn
2016-04-26  2:42           ` Serge E. Hallyn
2016-04-26 10:29             ` Karel Zak
2016-04-26 14:36               ` Serge E. Hallyn
2016-05-02 16:33                 ` Tejun Heo
2016-05-02 16:34   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).