]> nv-tegra.nvidia Code Review - linux-2.6.git/commit - security/tomoyo
TOMOYO: Remove usage counter for temporary memory.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Tue, 26 Jan 2010 11:45:27 +0000 (20:45 +0900)
committerJames Morris <jmorris@namei.org>
Tue, 26 Jan 2010 21:20:48 +0000 (08:20 +1100)
commit8e2d39a1665e680c095545993aac2fcac6916eb9
tree41687f7e7f4fb37416b7948b6d2e09d0a383459b
parent7d52a155e38d5a165759dbbee656455861bf7801
TOMOYO: Remove usage counter for temporary memory.

TOMOYO was using own memory usage counter for detecting memory leak.
But as kernel 2.6.31 introduced memory leak detection mechanism
( CONFIG_DEBUG_KMEMLEAK ), we no longer need to have own counter.

We remove usage counter for memory used for permission checks, but we keep
usage counter for memory used for policy so that we can apply quota.

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