aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/common.h
diff options
context:
space:
mode:
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2010-06-16 03:26:38 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 01:34:34 -0400
commit71c282362d0672235c5205a7db1f3ac3fcf32981 (patch)
treeb359947179fad844767fc5b54a0761b7353babc1 /security/tomoyo/common.h
parentd795ef9e751b72c94600c91e31bdaef55987a9f6 (diff)
TOMOYO: Remove wrapper function for reading keyword.
Keyword strings are read-only. We can directly access them to reduce code size. 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.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h
index 9b106e9adbec..f4da7a8034a3 100644
--- a/security/tomoyo/common.h
+++ b/security/tomoyo/common.h
@@ -804,14 +804,8 @@ bool tomoyo_read_no_rewrite_policy(struct tomoyo_io_buffer *head);
804bool tomoyo_tokenize(char *buffer, char *w[], size_t size); 804bool tomoyo_tokenize(char *buffer, char *w[], size_t size);
805/* Write domain policy violation warning message to console? */ 805/* Write domain policy violation warning message to console? */
806bool tomoyo_verbose_mode(const struct tomoyo_domain_info *domain); 806bool tomoyo_verbose_mode(const struct tomoyo_domain_info *domain);
807/* Convert double path operation to operation name. */
808const char *tomoyo_path22keyword(const u8 operation);
809const char *tomoyo_path_number2keyword(const u8 operation);
810const char *tomoyo_mkdev2keyword(const u8 operation);
811/* Get the last component of the given domainname. */ 807/* Get the last component of the given domainname. */
812const char *tomoyo_get_last_name(const struct tomoyo_domain_info *domain); 808const char *tomoyo_get_last_name(const struct tomoyo_domain_info *domain);
813/* Convert single path operation to operation name. */
814const char *tomoyo_path2keyword(const u8 operation);
815/* Fill "struct tomoyo_request_info". */ 809/* Fill "struct tomoyo_request_info". */
816int tomoyo_init_request_info(struct tomoyo_request_info *r, 810int tomoyo_init_request_info(struct tomoyo_request_info *r,
817 struct tomoyo_domain_info *domain, 811 struct tomoyo_domain_info *domain,
@@ -985,6 +979,11 @@ extern bool tomoyo_policy_loaded;
985/* The kernel's domain. */ 979/* The kernel's domain. */
986extern struct tomoyo_domain_info tomoyo_kernel_domain; 980extern struct tomoyo_domain_info tomoyo_kernel_domain;
987 981
982extern const char *tomoyo_path_keyword[TOMOYO_MAX_PATH_OPERATION];
983extern const char *tomoyo_mkdev_keyword[TOMOYO_MAX_MKDEV_OPERATION];
984extern const char *tomoyo_path2_keyword[TOMOYO_MAX_PATH2_OPERATION];
985extern const char *tomoyo_path_number_keyword[TOMOYO_MAX_PATH_NUMBER_OPERATION];
986
988extern unsigned int tomoyo_quota_for_query; 987extern unsigned int tomoyo_quota_for_query;
989extern unsigned int tomoyo_query_memory_size; 988extern unsigned int tomoyo_query_memory_size;
990 989