login
Header Space

 
 

Re: r-o bind in nfsd

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tetsuo Handa <penguin-kernel@...>
Cc: <miklos@...>, <viro@...>, <haveblue@...>, <linux-fsdevel@...>, <linux-kernel@...>, <akpm@...>, <hch@...>, <linux-security-module@...>, <jmorris@...>
Date: Tuesday, March 25, 2008 - 6:32 pm

On Tue, March 25, 2008 10:45 pm, Tetsuo Handa wrote:

Though the 'indent' data structure could be used to carry this information.


But do you want to impose path-name based controls to ftruncate?
Surely once you have a file open for write (not O_APPEND), then no
other permission is required to truncate the file, is it?
If it is, then maybe the 'struct file' should be tagged at open time
to say whether 'truncate' is allowed.


Not an insolvable problem.
One could imagine an implementation where a TYPE_RENAME_FROM security
check produced a cookie that was consumed by a TYPE_RENAME_TO security
check.  The cookie could then be used by the security module to
make any connection between the two names that might be appropriate.

<rant>
I suspect we would be much better off removing all the security hooks.
Security done at that level seems to be way too complex such that most
people don't really understand it.  And people who don't understand
security don't use it.
We'd be much better off getting rid of the whole "micro-manage security"
concept and provide isolation via some sort of high level container
approach.
</rant>

NeilBrown

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: r-o bind in nfsd, Neil Brown, (Mon Mar 24, 10:52 pm)
Re: r-o bind in nfsd, Tetsuo Handa, (Tue Mar 25, 7:45 am)
Re: r-o bind in nfsd, NeilBrown, (Tue Mar 25, 6:32 pm)
Re: r-o bind in nfsd, Stephen Smalley, (Wed Mar 26, 8:04 am)
Re: r-o bind in nfsd, Serge E. Hallyn, (Wed Mar 26, 12:47 pm)
Re: r-o bind in nfsd, James Morris, (Wed Mar 26, 5:35 pm)
Re: r-o bind in nfsd, Serge E. Hallyn, (Wed Mar 26, 8:29 pm)
speck-geostationary