Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264514
b: refs/heads/master
c: 8525841
h: refs/heads/master
v: v3
  • Loading branch information
Tetsuo Handa authored and James Morris committed Sep 9, 2011
1 parent 33bc5be commit e7046f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 403d1d0319ad73b5ccf251745af4c7000331a76b
refs/heads/master: 852584157c55c1689bcf3809ea44b79870c3e409
3 changes: 2 additions & 1 deletion trunk/security/tomoyo/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7046f4

Please sign in to comment.