summaryrefslogtreecommitdiffstats
path: root/security/keys/keyctl.c
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2011-03-02 16:54:24 +0900
committerJames Morris <jmorris@namei.org>2011-03-03 10:13:26 +1100
commiteae61f3c829439f8f9121b5cd48a14be04df451f (patch)
tree607f79bb57996e059c1da17a0411d5763c4748ca /security/keys/keyctl.c
parent1adace9bb04a5f4a4dea9e642089102661bb0ceb (diff)
downloadblackbird-op-linux-eae61f3c829439f8f9121b5cd48a14be04df451f.tar.gz
blackbird-op-linux-eae61f3c829439f8f9121b5cd48a14be04df451f.zip
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>
Diffstat (limited to 'security/keys/keyctl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud