]> git.baikalelectronics.ru Git - kernel.git/commit
TOMOYO: Allow domain transition without execve().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sat, 10 Sep 2011 06:25:58 +0000 (15:25 +0900)
committerJames Morris <jmorris@namei.org>
Tue, 13 Sep 2011 22:27:06 +0000 (08:27 +1000)
commitafab5d188e0ece17ca87d1bf345923dfe497cb96
tree8ac6028511485862572695eb91e2d461e0636182
parent66ee0ff3108a6296bccdf09e5e230a0bed1f85f6
TOMOYO: Allow domain transition without execve().

To be able to split permissions for Apache's CGI programs which are executed
without execve(), add special domain transition which is performed by writing
a TOMOYO's domainname to /sys/kernel/security/tomoyo/self_domain interface.

This is an API for TOMOYO-aware userland applications. However, since I expect
TOMOYO and other LSM modules to run in parallel, this patch does not use
/proc/self/attr/ interface in order to avoid conflicts with other LSM modules
when it became possible to run multiple LSM modules in parallel.

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/securityfs_if.c
security/tomoyo/util.c