linux/security/tomoyo
Tetsuo Handa 2e503bbb43 TOMOYO: Fix lockdep warning.
Currently TOMOYO holds SRCU lock upon open() and releases it upon close()
because list elements stored in the "struct tomoyo_io_buffer" instances are
accessed until close() is called. However, such SRCU usage causes lockdep to
complain about leaving the kernel with SRCU lock held.

This patch solves the warning by holding/releasing SRCU upon each
read()/write(). This patch is doing something similar to calling kfree()
without calling synchronize_srcu(), by selectively deferring kfree() by keeping
track of the "struct tomoyo_io_buffer" instances.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
2011-06-29 09:31:21 +10:00
..
audit.c TOMOYO: Add policy namespace support. 2011-06-29 09:31:21 +10:00
common.c TOMOYO: Fix lockdep warning. 2011-06-29 09:31:21 +10:00
common.h TOMOYO: Fix lockdep warning. 2011-06-29 09:31:21 +10:00
domain.c TOMOYO: Add policy namespace support. 2011-06-29 09:31:21 +10:00
file.c TOMOYO: Change pathname for non-rename()able filesystems. 2011-06-29 09:31:21 +10:00
gc.c TOMOYO: Fix lockdep warning. 2011-06-29 09:31:21 +10:00
group.c TOMOYO: Use struct for passing ACL line. 2011-06-29 09:31:20 +10:00
Kconfig Kconfig and Makefile 2009-02-12 15:19:00 +11:00
load_policy.c Fix common misspellings 2011-03-31 11:26:23 -03:00
Makefile TOMOYO: Add auditing interface. 2011-06-29 09:31:20 +10:00
memory.c TOMOYO: Add policy namespace support. 2011-06-29 09:31:21 +10:00
mount.c TOMOYO: Add auditing interface. 2011-06-29 09:31:20 +10:00
realpath.c TOMOYO: Change pathname for non-rename()able filesystems. 2011-06-29 09:31:21 +10:00
securityfs_if.c TOMOYO: Add auditing interface. 2011-06-29 09:31:20 +10:00
tomoyo.c TOMOYO: Cleanup part 1. 2011-06-29 09:31:19 +10:00
util.c TOMOYO: Add policy namespace support. 2011-06-29 09:31:21 +10:00