aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.h
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-01-03 07:16:32 -0500
committerJames Morris <jmorris@namei.org>2010-01-10 15:57:44 -0500
commitf737d95ddfea4df68a36ffc9231db4bf34b06d13 (patch)
tree28a1bf737c96ba8048abcf87a7acfc8412e92a2e /security/tomoyo/common.h
parentfdb8ebb729bbb640e64028a4f579a02ebc405727 (diff)
TOMOYO: Replace rw_semaphore by mutex.
Since readers no longer use down_read(), writers no longer need to use rw_semaphore. Replace individual rw_semaphore by single mutex. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.h')
-rw-r--r--security/tomoyo/common.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index c6f13925472a..874abf8df43e 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -431,10 +431,9 @@ static inline bool tomoyo_is_invalid(const unsigned char c)
431 431
432/* The list for "struct tomoyo_domain_info". */ 432/* The list for "struct tomoyo_domain_info". */
433extern struct list_head tomoyo_domain_list; 433extern struct list_head tomoyo_domain_list;
434extern struct rw_semaphore tomoyo_domain_list_lock;
435 434
436/* Lock for domain->acl_info_list. */ 435/* Lock for protecting policy. */
437extern struct rw_semaphore tomoyo_domain_acl_info_list_lock; 436extern struct mutex tomoyo_policy_lock;
438 437
439/* Has /sbin/init started? */ 438/* Has /sbin/init started? */
440extern bool tomoyo_policy_loaded; 439extern bool tomoyo_policy_loaded;