aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.h
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-06-03 07:37:26 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:33:42 -0400
commit3f629636320dfa65804779a3fc333f3147f3b064 (patch)
treee44dc9f63ae8c6cd37d5471d014cd9b0449027e7 /security/tomoyo/common.h
parentc8c57e842720d8cc92ac8607f2d1c16d92314573 (diff)
TOMOYO: Allow wildcard for execute permission.
Some applications create and execute programs dynamically. We need to accept wildcard for execute permission because such programs contain random suffix in their filenames. This patch loosens up regulation of string parameters. 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.h')
-rw-r--r--security/tomoyo/common.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index f4a8aa244af..d1b8d791bff 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -672,16 +672,15 @@ bool tomoyo_io_printf(struct tomoyo_io_buffer *head, const char *fmt, ...)
672/* Check whether the domainname is correct. */ 672/* Check whether the domainname is correct. */
673bool tomoyo_is_correct_domain(const unsigned char *domainname); 673bool tomoyo_is_correct_domain(const unsigned char *domainname);
674/* Check whether the token is correct. */ 674/* Check whether the token is correct. */
675bool tomoyo_is_correct_path(const char *filename, const s8 start_type, 675bool tomoyo_is_correct_path(const char *filename);
676 const s8 pattern_type, const s8 end_type); 676bool tomoyo_is_correct_word(const char *string);
677/* Check whether the token can be a domainname. */ 677/* Check whether the token can be a domainname. */
678bool tomoyo_is_domain_def(const unsigned char *buffer); 678bool tomoyo_is_domain_def(const unsigned char *buffer);
679bool tomoyo_parse_name_union(const char *filename, 679bool tomoyo_parse_name_union(const char *filename,
680 struct tomoyo_name_union *ptr); 680 struct tomoyo_name_union *ptr);
681/* Check whether the given filename matches the given path_group. */ 681/* Check whether the given filename matches the given path_group. */
682bool tomoyo_path_matches_group(const struct tomoyo_path_info *pathname, 682bool tomoyo_path_matches_group(const struct tomoyo_path_info *pathname,
683 const struct tomoyo_path_group *group, 683 const struct tomoyo_path_group *group);
684 const bool may_use_pattern);
685/* Check whether the given value matches the given number_group. */ 684/* Check whether the given value matches the given number_group. */
686bool tomoyo_number_matches_group(const unsigned long min, 685bool tomoyo_number_matches_group(const unsigned long min,
687 const unsigned long max, 686 const unsigned long max,