Re: r-o bind in nfsd

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <neilb@...>, <miklos@...>
Cc: <viro@...>, <haveblue@...>, <linux-fsdevel@...>, <linux-kernel@...>, <akpm@...>, <hch@...>, <linux-security-module@...>, <jmorris@...>
Date: Tuesday, March 25, 2008 - 7:45 am

Hello.


I think link_path_walk() is not a good place to insert new LSM hooks
for pathname based access control (AppArmor and TOMOYO) purpose because

  (1) The kernel don't know what operation (open/create/truncate etc.) will be
      done at the moment of link_path_walk().

  (2) Not all operations call link_path_walk() before these operations
      are done. For example, ftruncate() doesn't call link_path_walk().

  (3) The rename() and link() operations handle two pathnames.
      But, it is not possible to know both pathnames at the moment of
      link_path_walk().

I think we need to introduce new LSM hooks outside link_path_walk().
http://kerneltrap.org/mailarchive/linux-fsdevel/2008/2/17/882024
--
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)