Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-28 19:35:07
Last Modify:2020-03-18 09:15:18 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_write_domain2 - Write domain policy.*@ns: Pointer to "struct tomoyo_policy_namespace".*@list: Pointer to "struct list_head".*@data: Policy to be interpreted.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.

Proto:static int tomoyo_write_domain2(struct tomoyo_policy_namespace *ns, struct list_head *list, char *data, const bool is_delete)

Type:int

Parameter:

TypeParameterName
struct tomoyo_policy_namespace *ns
struct list_head *list
char *data
const boolis_delete
1130  struct tomoyo_acl_param param = {ns = ns, list = list, data = data, is_delete = is_delete, }
1136  static const struct{const char * keyword;int( * write)(struct tomoyo_acl_param * param)}tomoyo_callback[5] = {{"file ", tomoyo_write_file}, {"network inet ", moyo_write_inet_network - Write "struct tomoyo_inet_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().}, {"network unix ", tomoyo_write_unix_network}, {"misc ", tomoyo_write_misc}, {"task ", moyo_write_task - Update task related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().}, }
1148  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(tomoyo_callback) cycle
1149  If Not tomoyo_str_starts( & data, keyword) Then Continue
1152  Return write( & param)
1154  Return -EINVAL
Caller
NameDescribe
tomoyo_write_domainmoyo_write_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_exceptionmoyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_add_entrymoyo_add_entry - Add an ACL to current thread's domain. Used by learning mode.*@domain: Pointer to "struct tomoyo_domain_info".*@header: Lines containing ACL.* Returns nothing.