From e7046f41aa42e93a5d52d462a7e2c154fc6eb4e1 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Thu, 25 Aug 2011 21:15:00 +0900 Subject: [PATCH] --- yaml --- r: 264514 b: refs/heads/master c: 852584157c55c1689bcf3809ea44b79870c3e409 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/security/tomoyo/util.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index fa35d70887bb..e4a5213c7a82 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 403d1d0319ad73b5ccf251745af4c7000331a76b +refs/heads/master: 852584157c55c1689bcf3809ea44b79870c3e409 diff --git a/trunk/security/tomoyo/util.c b/trunk/security/tomoyo/util.c index c36bd1107fc8..6a4195a4b93c 100644 --- a/trunk/security/tomoyo/util.c +++ b/trunk/security/tomoyo/util.c @@ -925,7 +925,8 @@ int tomoyo_get_mode(const struct tomoyo_policy_namespace *ns, const u8 profile, return TOMOYO_CONFIG_DISABLED; mode = tomoyo_profile(ns, profile)->config[index]; if (mode == TOMOYO_CONFIG_USE_DEFAULT) - mode = tomoyo_profile(ns, profile)->config[category]; + mode = tomoyo_profile(ns, profile)->config + [category + TOMOYO_MAX_MAC_INDEX]; if (mode == TOMOYO_CONFIG_USE_DEFAULT) mode = tomoyo_profile(ns, profile)->default_config; return mode & 3;