Re: [patch 01/15] security: pass path to inode_create

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Toshiharu Harada <haradats@...>
Cc: Miklos Szeredi <miklos@...>, <hch@...>, <linux-security-module@...>, <linux-fsdevel@...>, <jmorris@...>, <sds@...>, <eparis@...>, <casey@...>, <agruen@...>, <jjohansen@...>, <penguin-kernel@...>, <viro@...>, <linux-kernel@...>
Date: Monday, June 2, 2008 - 12:52 pm

On Tue, Jun 03, 2008 at 01:29:33AM +0900, Toshiharu Harada (haradats@gmail.com) wrote:

They can, if really want, to get vfsmount.

A hint: there is security_sb_check_sb() and security_sb_post_addmount().
Store that vsmount in private cache, search the very root dentry for any inode
inside that cache of vfsmounts and get a pointer. Looks a bit ugly
though, and slower (really a bit), but it can solve a problem.
It is also possible to implement own path cache isntead of using dentry
cache, since apparently dentry is not needed neither to apparmor nor to
tomoyo, but path info (in own format). And that will be even better
solution, since it will be exactly what selinux does with its data. 
Only to different objects. This will complicate move/rename and other
pathname manipulation. There are of course underwater rocks, but they
can be worked out with existing inode-biased approach.

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

Messages in current thread:
[patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Thu May 29, 9:49 am)
Re: [patch 01/15] security: pass path to inode_create, Stephen Smalley, (Tue Jun 3, 9:43 am)
Re: [patch 01/15] security: pass path to inode_create, Tetsuo Handa, (Wed Jun 4, 1:09 am)
Re: [patch 01/15] security: pass path to inode_create, Christoph Hellwig, (Sat May 31, 4:30 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Sun Jun 1, 4:52 pm)
Re: [patch 01/15] security: pass path to inode_create, Christoph Hellwig, (Mon Jun 2, 2:01 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 3:02 am)
Re: [patch 01/15] security: pass path to inode_create, Matthew Wilcox, (Mon Jun 2, 7:23 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 7:34 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 7:52 am)
Re: [patch 01/15] security: pass path to inode_create, Matthew Wilcox, (Mon Jun 2, 8:32 am)
Re: [patch 01/15] security: pass path to inode_create, Andreas Gruenbacher, (Mon Jun 2, 8:45 am)
Re: [patch 01/15] security: pass path to inode_create, Tetsuo Handa, (Sat Jun 14, 4:27 am)
Re: [patch 01/15] security: pass path to inode_create, Matthew Wilcox, (Mon Jun 2, 8:49 am)
Re: [patch 01/15] security: pass path to inode_create, Andreas Gruenbacher, (Mon Jun 2, 9:24 am)
Re: [patch 01/15] security: pass path to inode_create, Christoph Hellwig, (Mon Jun 2, 5:13 am)
Re: [patch 01/15] security: pass path to inode_create, Andreas Gruenbacher, (Mon Jun 2, 6:04 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 5:32 am)
Re: [patch 01/15] security: pass path to inode_create, Christoph Hellwig, (Mon Jun 2, 5:36 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 5:52 am)
Re: [patch 01/15] security: pass path to inode_create, Christoph Hellwig, (Mon Jun 2, 6:42 am)
Re: [patch 01/15] security: pass path to inode_create, Serge E. Hallyn, (Mon Jun 2, 2:59 pm)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 6:55 am)
Re: [patch 01/15] security: pass path to inode_create, Evgeniy Polyakov, (Mon Jun 2, 11:05 am)
Re: [patch 01/15] security: pass path to inode_create, Toshiharu Harada, (Mon Jun 2, 11:31 am)
Re: [patch 01/15] security: pass path to inode_create, Evgeniy Polyakov, (Mon Jun 2, 11:51 am)
Re: [patch 01/15] security: pass path to inode_create, Toshiharu Harada, (Mon Jun 2, 12:29 pm)
Re: [patch 01/15] security: pass path to inode_create, Evgeniy Polyakov, (Mon Jun 2, 12:52 pm)
Re: [patch 01/15] security: pass path to inode_create, Toshiharu Harada, (Mon Jun 2, 7:37 pm)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Tue Jun 3, 2:08 am)
Re: [patch 01/15] security: pass path to inode_create, Pekka Enberg, (Mon Jun 2, 7:04 am)
Re: [patch 01/15] security: pass path to inode_create, Miklos Szeredi, (Mon Jun 2, 7:13 am)
Re: [patch 01/15] security: pass path to inode_create, Tetsuo Handa, (Sat May 31, 6:48 am)