linux-stable-rt/security/tomoyo
Tetsuo Handa eae61f3c82 TOMOYO: Fix memory leak upon file open.
In tomoyo_check_open_permission() since 2.6.36, TOMOYO was by error
recalculating already calculated pathname when checking allow_rewrite
permission. As a result, memory will leak whenever a file is opened for writing
without O_APPEND flag. Also, performance will degrade because TOMOYO is
calculating pathname regardless of profile configuration.
This patch fixes the leak and performance degrade.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
2011-03-03 10:13:26 +11:00
..
Kconfig
Makefile
common.c TOMOYO: Print URL information before panic(). 2010-10-21 10:12:45 +11:00
common.h
domain.c
file.c TOMOYO: Fix memory leak upon file open. 2011-03-03 10:13:26 +11:00
gc.c
group.c
load_policy.c
memory.c
mount.c
realpath.c fs: dcache scale d_unhashed 2011-01-07 17:50:21 +11:00
securityfs_if.c
tomoyo.c
util.c