Files
twx-linux/security
Tetsuo Handa 7cd4ad7e56 TOMOYO: Fix memory leak upon file open.
commit eae61f3c82 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-03-23 13:03:40 -07:00
..
2011-01-03 16:36:33 -08:00
2011-01-10 09:46:24 +11:00
2010-10-29 04:16:28 -04:00
2010-11-29 08:55:29 +11:00
…