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;