Re: /proc/pid/fd/ shows strange mode when executed via sudo.

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

On Fri, May 18, 2012 at 11:08 AM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> I think this is bogus.  We don't give a fuck about *any* of those fields
> for symlinks; the only problem here is that default ->getattr() uses
> them to fill ->st_mode  The same goes for ->i_uid/->i_gid.
> So how about simply adding ->getattr() for those guys?  And to hell
> with assignments in that ->d_revalidate() instance...

Doing it at getattr() time does sound good.

Let me try to cook something up.

To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Linux Ext4 Filesystem]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [CEPH Filesystem]

  Powered by Linux