TOMOYO: Add interactive enforcing mode.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 17 May 2010 01:11:36 +0000 (10:11 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 2 Aug 2010 05:33:38 +0000 (15:33 +1000)
commit17fcfbd9d45b57f38d40e31f9d28db53f4af5c88
treee221937affe4d886706e880f39e1424333490cc0
parent2106ccd972dcd9fda7df9b181505fac1741b3508
TOMOYO: Add interactive enforcing mode.

Since the behavior of the system is restricted by policy, we may need to update
policy when you update packages.

We need to update policy in the following cases.

    * The pathname of files has changed.
    * The dependency of files has changed.
    * The access permissions required has increased.

The ideal way to update policy is to rebuild from the scratch using learning
mode. But it is not desirable to change from enforcing mode to other mode if
the system has once entered in production state. Suppose MAC could support
per-application enforcing mode, the MAC becomes useless if an application that
is not running in enforcing mode was cracked. For example, the whole system
becomes vulnerable if only HTTP server application is running in learning mode
to rebuild policy for the application. So, in TOMOYO Linux, updating policy is
done while the system is running in enforcing mode.

This patch implements "interactive enforcing mode" which allows administrators
to judge whether to accept policy violation in enforcing mode or not.
A demo movie is available at http://www.youtube.com/watch?v=b9q1Jo25LPA .

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/realpath.c