Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().

Proto:static int tomoyo_write_exception(struct tomoyo_io_buffer *head)

Type:int

Parameter:

TypeParameterName
struct tomoyo_io_buffer *head
1758  is_delete = is_delete
1759  struct tomoyo_acl_param param = {ns = ns, is_delete = is_delete, data = Buffer for writing. , }
1766  If tomoyo_str_starts( & data, "aggregator ") Then Return moyo_write_aggregator - Write "struct tomoyo_aggregator" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
1768  When i < TOMOYO_MAX_TRANSITION_TYPE cycle If tomoyo_str_starts( & data, String table for domain transition control keywords. [i]) Then
1770  Return moyo_write_transition_control - Write "struct tomoyo_transition_control" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this entry.* Returns 0 on success, negative value otherwise.
1771  When i < TOMOYO_MAX_GROUP cycle If tomoyo_str_starts( & data, String table for grouping keywords. [i]) Then
1773  Return moyo_write_group - Write "struct tomoyo_path_group"/"struct tomoyo_number_group"/"struct tomoyo_address_group" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this group.* Returns 0 on success, negative value otherwise.
1774  If tomoyo_str_starts( & data, "acl_group ") Then
1778  group = simple_strtoul - convert a string to an unsigned long*@cp: The start of the string*@endp: A pointer to the end of the parsed string will be placed here*@base: The number base to use* This function is obsolete. Please use kstrtoul instead.
1779  If group < Group number is an integer between 0 and 255. && data++ == ' ' Then Return 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.
1784  Return -EINVAL