From: Daniel Lezcano <daniel.lezcano@free.fr>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: mount namespace : who mounted what ?
Date: Fri, 04 Jun 2010 12:14:07 +0200 [thread overview]
Message-ID: <4C08D1EF.4000104@free.fr> (raw)
In-Reply-To: <20100604040158.GZ31073@ZenIV.linux.org.uk>
On 06/04/2010 06:01 AM, Al Viro wrote:
> On Thu, Jun 03, 2010 at 10:04:13PM +0200, Daniel Lezcano wrote:
>
>> Hi all,
>>
>> I was wondering, in a new mount namespace, if it is possible to know
>> which mount points were inherited and which were mounted in a new
>> namespace ?
>>
>> I looked at /proc/<pid>/mountinfo and investigated a bit on the
>> mount id, but this one is not reliable as it changes in the new
>> namespace. The /proc/<pid>/mounts file shows all the mount points
>> visible for the process inherited or not.
>>
> No more than "had it been this process that mmaped that area or was it
> inherited from the parent?"
>
Ok, thanks.
I thought it may be interessting to add this information in the procfs
(eg. /proc/<pid>/mountprivate) but wrt your remark that should have no
sense as, to be consistent, we should do the same for all kind of
inherited resources.
prev parent reply other threads:[~2010-06-04 10:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 20:04 mount namespace : who mounted what ? Daniel Lezcano
2010-06-04 4:01 ` Al Viro
2010-06-04 10:14 ` Daniel Lezcano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C08D1EF.4000104@free.fr \
--to=daniel.lezcano@free.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@ZenIV.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.