diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-06-03 07:38:03 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:33:42 -0400 |
commit | 1084307ca097745ed6e40a192329b133a49271ac (patch) | |
tree | f3b2e81705afb4ca3006ebb931aa0aad426ace02 /security/tomoyo/common.c | |
parent | 3f629636320dfa65804779a3fc333f3147f3b064 (diff) |
TOMOYO: Add pathname aggregation support.
This patch allows users to aggregate programs which provide similar
functionality (e.g. /usr/bin/vi and /usr/bin/emacs ).
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/common.c')
-rw-r--r-- | security/tomoyo/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 3f94011c6411..bdf1ed7ca45b 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c | |||
@@ -1141,6 +1141,8 @@ static int tomoyo_write_exception_policy(struct tomoyo_io_buffer *head) | |||
1141 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_NO_INITIALIZE_DOMAIN)) | 1141 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_NO_INITIALIZE_DOMAIN)) |
1142 | return tomoyo_write_domain_initializer_policy(data, true, | 1142 | return tomoyo_write_domain_initializer_policy(data, true, |
1143 | is_delete); | 1143 | is_delete); |
1144 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_AGGREGATOR)) | ||
1145 | return tomoyo_write_aggregator_policy(data, is_delete); | ||
1144 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_ALIAS)) | 1146 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_ALIAS)) |
1145 | return tomoyo_write_alias_policy(data, is_delete); | 1147 | return tomoyo_write_alias_policy(data, is_delete); |
1146 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_ALLOW_READ)) | 1148 | if (tomoyo_str_starts(&data, TOMOYO_KEYWORD_ALLOW_READ)) |
@@ -1196,6 +1198,8 @@ static int tomoyo_read_exception_policy(struct tomoyo_io_buffer *head) | |||
1196 | head->read_var2 = NULL; | 1198 | head->read_var2 = NULL; |
1197 | head->read_step = 6; | 1199 | head->read_step = 6; |
1198 | case 6: | 1200 | case 6: |
1201 | if (!tomoyo_read_aggregator_policy(head)) | ||
1202 | break; | ||
1199 | head->read_var2 = NULL; | 1203 | head->read_var2 = NULL; |
1200 | head->read_step = 7; | 1204 | head->read_step = 7; |
1201 | case 7: | 1205 | case 7: |