lkml.org 
[lkml]   [2007]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [fuse-devel] [PATCH 01/25] VFS: move attr_kill logic from notify_change into helper function
From
Date
> There's another way to deal with this in NFS and fuse, without having
> to change the API:
>
> - remove suid/sgid bits from i_mode, when refreshing the inode attributes
> - store the removed bits (or the original mode) in the fs' inode strucure
> - in ->getattr() restore the original mode into the returned stat
>
> This way the VFS believes, that the inode does not in fact have the
> suid/sgid bits and so won't call ->setattr() unnecessarily.

Of course this would break exec(). Oh, well.

Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-08-07 12:35    [W:0.071 / U:0.780 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site