login
Header Space

 
 

Re: [TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Toshiharu Harada <haradats@...>
Cc: <akpm@...>, <chrisw@...>, <viro@...>, <linux-security-module@...>, <linux-fsdevel@...>, <linux-kernel@...>, Kentaro Takeda <takedakn@...>, Tetsuo Handa <penguin-kernel@...>
Date: Thursday, May 1, 2008 - 4:01 am

* Toshiharu Harada (haradats@nttdata.co.jp) wrote:

This is simply duplicating many of the existing checks.
I don't see how this is an improvement.


Pure duplication (of course adding nameidata, although I think you just
want path).

	...
	error = vfs_permission(nd, acc_mode);
	if (error)
		return error;
	...

Also duplication.  And why the unique flag handling, you don't seem to
ever check?


More duplication, you'll get a call chain like:

sys_mknod
  security_path_mknod
    pre_vfs_mknod
  vfs_mknod
   pre_vfs_mknod
   security_inode_mknod


--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks., Toshiharu Harada, (Thu May 1, 1:54 am)
Re: [TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks., Chris Wright, (Thu May 1, 4:01 am)
Re: [TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks., Stephen Smalley, (Thu May 1, 12:45 pm)
Re: [TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks., Stephen Smalley, (Thu May 1, 11:17 am)
speck-geostationary