lkml.org 
[lkml]   [2011]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/7] overlay filesystem v9
On Fri, May 20, 2011 at 10:18:30AM +0200, Miklos Szeredi wrote:

> Yeah, it should probably do something like:
>
> if (inode->i_op->getattr) {
> struct kstat stat;
> inode->i_op->getattr(...)
> uid = stat.uid;
> } else {
> uid = inode->i_uid;
> }
>
> The problem is that getattr takes a vfsmount, which makes this
> impossible to do cleanly. And the solution is for ->getattr() to lose
> that argument, which is a bit more involved :(

Ok. I am going to take this as a bug in the LSM, so ignore my patch
here. I have been poking at what the LSM is doing and actually I think
I see the flaw, so I will take the issue up with them.

In light of that take this as a "tested heavily and it worked without
issues" on the V9 version.

Tested-by: Andy Whitcroft <apw@canonical.com>

-apw


\
 
 \ /
  Last update: 2011-05-20 14:45    [W:0.050 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site