Re: [PATCH] vfs: Fix, simpliy and stop using d_dname for the /proc/*/ns/* files.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 20, 2015 at 05:05:30PM -0500, Eric W. Biederman wrote:
> This works for me, can you confirm it works for you folks as well?
> 
> Thank you,
> Eric

Yup, neither reproducer produces the warning anymore.
Reported-and-Tested-by: Omar Sandoval <osandov@xxxxxxxxxxx>

> From: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
> Date: Wed, 20 May 2015 16:39:00 -0500
> Subject: [PATCH] vfs: Fix, simpliy and stop using d_dname for the /proc/*/ns/* files.
> 
> Now that these files are no longer in proc we can stop playing games
> with d_alloc_pseudo and d_dname.  This change causes a couple of user
> visible changes:
> 
> - Opening /proc/*/ns/* and then readlink on /proc/self/fd/N now sees a
>   prepended / in the filename.
> 
> - /proc/mountinfo now gives useful information on what is mounted.
> 
> - Bind mounting /proc/*/ns/*, opening the mounted file, removing the
>   bind mount, and readlink on /proc/self/fd/N now sees / (as it should)

What's the rationale for "/" in this case? (I'm not disagreeing, just
looking to learn something.)

Thanks,
-- 
Omar
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux