Re: [V9fs-developer] [RFC PATCH -V2 06/17] fs/9p: Add fid to inode in cached mode

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

 



On Sat, Feb 5, 2011 at 11:46 AM, Aneesh Kumar K.V
<aneesh.kumar@xxxxxxxxxxxxxxxxxx> wrote:
> The fid attached to inode will be opened O_RDWR mode and is used
> for dirty page writeback only.
>
> FIXME!!: Should we make the fid owned by uid = 0
>

Good question, the idea was for the kernel to own the fid while the
cache needed it.  Although
its unlikely to ever be matched to anything else since its an "open"
fid (so it won't be a candidate
for a walk).  It might be more secure to have it owned by some special
constant (a NOUID which could be ~0)
and marks the fid as being owned by the client and no one else without
any sort of implication of authority/ownership.
We could then put a special check in the find fid code to ignore any
fids with NOUID.

      -eric
--
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