* mount namespace : who mounted what ?
@ 2010-06-03 20:04 Daniel Lezcano
2010-06-04 4:01 ` Al Viro
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2010-06-03 20:04 UTC (permalink / raw)
To: Linux Kernel Mailing List
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.
Any ideas ?
Thanks
-- Daniel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mount namespace : who mounted what ?
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
0 siblings, 1 reply; 3+ messages in thread
From: Al Viro @ 2010-06-04 4:01 UTC (permalink / raw)
To: Daniel Lezcano; +Cc: Linux Kernel Mailing List
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?"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mount namespace : who mounted what ?
2010-06-04 4:01 ` Al Viro
@ 2010-06-04 10:14 ` Daniel Lezcano
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Lezcano @ 2010-06-04 10:14 UTC (permalink / raw)
To: Al Viro; +Cc: Linux Kernel Mailing List
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-06-04 10:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox