diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2010-06-17 03:55:58 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2010-08-02 01:34:42 -0400 |
commit | 7c2ea22e3c5463627ca98924cd65cb9e480dc29c (patch) | |
tree | 3a105a08cf75c77689bdfe890c64f9ae433748b9 /security/tomoyo/common.h | |
parent | 31845e8c6d3f4f26702e567c667277f9fd1f73a3 (diff) |
TOMOYO: Merge path_group and number_group.
Use common code for "path_group" and "number_group".
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.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/security/tomoyo/common.h b/security/tomoyo/common.h index 21eb1e7885b8..ec3ed488ee30 100644 --- a/security/tomoyo/common.h +++ b/security/tomoyo/common.h | |||
@@ -838,12 +838,10 @@ int tomoyo_write_mount_policy(char *data, struct tomoyo_domain_info *domain, | |||
838 | int tomoyo_write_no_rewrite_policy(char *data, const bool is_delete); | 838 | int tomoyo_write_no_rewrite_policy(char *data, const bool is_delete); |
839 | /* Create "file_pattern" entry in exception policy. */ | 839 | /* Create "file_pattern" entry in exception policy. */ |
840 | int tomoyo_write_pattern_policy(char *data, const bool is_delete); | 840 | int tomoyo_write_pattern_policy(char *data, const bool is_delete); |
841 | /* Create "path_group" entry in exception policy. */ | 841 | /* Create "path_group"/"number_group" entry in exception policy. */ |
842 | int tomoyo_write_path_group_policy(char *data, const bool is_delete); | 842 | int tomoyo_write_group(char *data, const bool is_delete, const u8 type); |
843 | int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...) | 843 | int tomoyo_supervisor(struct tomoyo_request_info *r, const char *fmt, ...) |
844 | __attribute__ ((format(printf, 2, 3))); | 844 | __attribute__ ((format(printf, 2, 3))); |
845 | /* Create "number_group" entry in exception policy. */ | ||
846 | int tomoyo_write_number_group_policy(char *data, const bool is_delete); | ||
847 | /* Find a domain by the given name. */ | 845 | /* Find a domain by the given name. */ |
848 | struct tomoyo_domain_info *tomoyo_find_domain(const char *domainname); | 846 | struct tomoyo_domain_info *tomoyo_find_domain(const char *domainname); |
849 | /* Find or create a domain by the given name. */ | 847 | /* Find or create a domain by the given name. */ |
@@ -851,9 +849,10 @@ struct tomoyo_domain_info *tomoyo_find_or_assign_new_domain(const char * | |||
851 | domainname, | 849 | domainname, |
852 | const u8 profile); | 850 | const u8 profile); |
853 | struct tomoyo_profile *tomoyo_profile(const u8 profile); | 851 | struct tomoyo_profile *tomoyo_profile(const u8 profile); |
854 | /* Allocate memory for "struct tomoyo_path_group". */ | 852 | /* |
855 | struct tomoyo_group *tomoyo_get_path_group(const char *group_name); | 853 | * Allocate memory for "struct tomoyo_path_group"/"struct tomoyo_number_group". |
856 | struct tomoyo_group *tomoyo_get_number_group(const char *group_name); | 854 | */ |
855 | struct tomoyo_group *tomoyo_get_group(const char *group_name, const u8 type); | ||
857 | 856 | ||
858 | /* Check mode for specified functionality. */ | 857 | /* Check mode for specified functionality. */ |
859 | unsigned int tomoyo_check_flags(const struct tomoyo_domain_info *domain, | 858 | unsigned int tomoyo_check_flags(const struct tomoyo_domain_info *domain, |