]> bbs.cooldavid.org Git - net-next-2.6.git/commit
TOMOYO: Update profile structure.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 3 Jun 2010 11:38:44 +0000 (20:38 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:33:43 +0000 (15:33 +1000)
commit57c2590fb7fd38bd52708ff2716a577d0c2b3c5a
tree19db2e176e1e49d85482995249ba18aebbb8f7eb
parent1084307ca097745ed6e40a192329b133a49271ac
TOMOYO: Update profile structure.

This patch allows users to change access control mode for per-operation basis.
This feature comes from non LSM version of TOMOYO which is designed for
permitting users to use SELinux and TOMOYO at the same time.

SELinux does not care filename in a directory whereas TOMOYO does. Change of
filename can change how the file is used. For example, renaming index.txt to
.htaccess will change how the file is used. Thus, letting SELinux to enforce
read()/write()/mmap() etc. restriction and letting TOMOYO to enforce rename()
restriction is an example usage of this feature.

What is unfortunate for me is that currently LSM does not allow users to use
SELinux and LSM version of TOMOYO at the same time...

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/common.c
security/tomoyo/common.h
security/tomoyo/domain.c
security/tomoyo/file.c
security/tomoyo/mount.c
security/tomoyo/util.c