Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751447AbcDQUEo (ORCPT ); Sun, 17 Apr 2016 16:04:44 -0400 Received: from h2.hallyn.com ([78.46.35.8]:46030 "EHLO h2.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750852AbcDQUEj (ORCPT ); Sun, 17 Apr 2016 16:04:39 -0400 From: serge.hallyn@ubuntu.com To: linux-kernel@vger.kernel.org Cc: adityakali@google.com, tj@kernel.org, linux-api@vger.kernel.org, containers@lists.linux-foundation.org, cgroups@vger.kernel.org, akpm@linux-foundation.org, ebiederm@xmission.com, gregkh@linuxfoundation.org, lizefan@huawei.com, hannes@cmpxchg.org Subject: Show virtualized dentry root in mountinfo for cgroupfs Date: Sun, 17 Apr 2016 15:04:30 -0500 Message-Id: <1460923472-29370-1-git-send-email-serge.hallyn@ubuntu.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 510 Lines: 10 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.