kernel-fxtec-pro1x/security/tomoyo
Tetsuo Handa 2a086e5d3a TOMOYO: Fix race on updating profile's comment line.
In tomoyo_write_profile() since 2.6.34, a lock was by error missing when
replacing profile's comment line. If multiple threads attempted

  echo '0-COMMENT=comment' > /sys/kernel/security/tomoyo/profile

in parallel, garbage collector will fail to kfree() the old value.
Protect the replacement using a lock. Also, keep the old value rather than
replace with empty string when out of memory error has occurred.

Signed-off-by: Xiaochen Wang <wangxiaochen0@gmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
2011-04-19 09:37:06 +10:00
..
common.c TOMOYO: Fix race on updating profile's comment line. 2011-04-19 09:37:06 +10:00
common.h TOMOYO: Don't abuse sys_getpid(), sys_getppid() 2010-09-27 10:53:18 +10:00
domain.c TOMOYO: Use pathname specified by policy rather than execve() 2010-08-02 15:38:38 +10:00
file.c TOMOYO: Fix memory leak upon file open. 2011-03-03 10:13:26 +11:00
gc.c TOMOYO: Rename symbols. 2010-08-02 15:34:54 +10:00
group.c TOMOYO: Use pathname specified by policy rather than execve() 2010-08-02 15:38:38 +10:00
Kconfig
load_policy.c TOMOYO: Split files into some pieces. 2010-08-02 15:33:39 +10:00
Makefile TOMOYO: Merge path_group and number_group. 2010-08-02 15:34:42 +10:00
memory.c tomoyo: fix memory leak in tomoyo_commit_ok() 2011-03-31 10:25:06 +11:00
mount.c TOMOYO: Use pathname specified by policy rather than execve() 2010-08-02 15:38:38 +10:00
realpath.c fs: dcache scale d_unhashed 2011-01-07 17:50:21 +11:00
securityfs_if.c TOMOYO: Explicitly set file_operations->llseek pointer. 2010-08-02 15:34:57 +10:00
tomoyo.c TOMOYO: Rename symbols. 2010-08-02 15:34:33 +10:00
util.c TOMOYO: Fix quota check. 2010-08-02 15:35:09 +10:00