login
Header Space

 
 

Re: r-o bind in nfsd

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Miklos Szeredi <miklos@...>
Cc: <haveblue@...>, <linux-fsdevel@...>, <linux-kernel@...>, <neilb@...>, <akpm@...>, <hch@...>, <linux-security-module@...>, <jmorris@...>
Date: Friday, March 21, 2008 - 3:49 pm

On Fri, Mar 21, 2008 at 07:52:35PM +0100, Miklos Szeredi wrote:

Because we'd been that way before; see the shitpiles around ->lookup()
getting nameidata, etc.  You'll end up with some callers passing NULL
as ->mnt since they don't have anything better to pass, some stuff
called *from* the damn thing caring to check for ->mnt being NULL,
some stuff not caring about what ->mnt is at all and some assuming
that it's not NULL.  Which will lead to exploding combinations that
won't be noticed until somebody steps into such config.

As for the vfsmount-dependent checks (and any kind of MAC, while we are
at it)...  They belong to callers, exactly because different callers may
want different (amount of) checks.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 10:59 am)
Re: r-o bind in nfsd, Al Viro, (Fri Mar 21, 11:54 am)
Re: r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 12:24 pm)
Re: r-o bind in nfsd, Al Viro, (Fri Mar 21, 12:35 pm)
Re: r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 12:54 pm)
Re: r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 1:08 pm)
Re: r-o bind in nfsd, Al Viro, (Fri Mar 21, 2:11 pm)
Re: r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 2:52 pm)
Re: r-o bind in nfsd, Dave Hansen, (Fri Mar 21, 5:08 pm)
Re: r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 5:17 pm)
Re: r-o bind in nfsd, Al Viro, (Fri Mar 21, 3:49 pm)
Re: r-o bind in nfsd, Miklos Szeredi, (Fri Mar 21, 4:23 pm)
Re: r-o bind in nfsd, Tetsuo Handa, (Fri Mar 21, 10:20 pm)
speck-geostationary