Re: [TOMOYO #5 02/18] Add wrapper functions for VFShelperfunctions.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <trond.myklebust@...>
Cc: <akpm@...>, <linux-kernel@...>, <linux-security-module@...>
Date: Saturday, November 17, 2007 - 1:23 am

Hello.

Trond Myklebust wrote:
For example, if userland process wants to create a directory,
it will call mkdir(2).
In the kernel, mkdir(2) is mapped to sys_mkdir(),
sys_mkdir() calls sys_mkdirat(),
sys_mkdirat() calls vfs_mkdir().

Therefore, there is a chance to tell whether
vfs_mkdir() is triggered by userland process's request.
Some kernel code *might* call sys_mkdir() too.
But at least I think I can hook all requests
triggered by userland process's request
because routes to call vfs_mkdir() from userland is not infinite.

We are regarding the kernel code as trusted.
For example, no security checks for code that are called by only kernel.
http://www.mail-archive.com/linux-security-module@vger.kernel.org/msg01830.html

Regards.

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

Messages in current thread:
Re: [TOMOYO #5 02/18] Add wrapper functions for VFS helper f..., Christoph Hellwig, (Mon Nov 19, 8:53 am)
Re: [TOMOYO #5 02/18] Add wrapper functions for VFShelperfun..., Tetsuo Handa, (Sat Nov 17, 1:23 am)