Re: r-o bind in nfsd

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <viro@...>
Cc: <miklos@...>, <haveblue@...>, <linux-fsdevel@...>, <linux-kernel@...>, <neilb@...>, <akpm@...>, <hch@...>, <linux-security-module@...>, <jmorris@...>
Date: Friday, March 21, 2008 - 4:23 pm

> > > > > And having the vfsmount available within vfs_...() functions means,

Right, we do want to prevent that happening.

And for example moving read-only mount checks inside vfs_...() would
ensure that.


And we end up random callers forgetting some of the checks, like we
have now with nfsd.  Not good at all.

I think it's still a lot better all the checks are always done, even
if not strictly necessary for a certain caller, than if the caller has
to make sure the necessary ones do get done.

Assuming of course, that all valid users _do_ have the vfsmount
available, which I think is true.  If you have a counterexample,
please let us know.

If not all (but most) callers have the vfsmount available, then a new
helper makes sense.

If there was only one caller which needed a certain check, then moving
that into the caller would be the right thing of course.  But that's
not the case here.

Miklos
--
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)