Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\util.c Create Date:2022-07-28 19:47:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:moyo_parse_name_union - Parse a tomoyo_name_union.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_name_union".* Returns true on success, false otherwise.

Proto:bool tomoyo_parse_name_union(struct tomoyo_acl_param *param, struct tomoyo_name_union *ptr)

Type:bool

Parameter:

TypeParameterName
struct tomoyo_acl_param *param
struct tomoyo_name_union *ptr
250  If data[0] == '@' Then
251  data++
252  group = moyo_get_group - Allocate memory for "struct tomoyo_path_group"/"struct tomoyo_number_group".*@param: Pointer to "struct tomoyo_acl_param".*@idx: Index number.* Returns pointer to "struct tomoyo_group" on success, NULL otherwise.
253  Return group != NULL
255  filename = moyo_read_token - Read a word from a line.*@param: Pointer to "struct tomoyo_acl_param".* Returns a word on success, "" otherwise.* To allow the caller to skip NULL check, this function returns "" rather than* NULL if there is no more words to read.
256  If Not moyo_correct_word - Validate a string.*@string: The string to check.* Check whether the given string follows the naming rules.* Returns true if @string follows the naming rules, false otherwise. Then Return false
258  Either @filename or @group is NULL. = moyo_get_name - Allocate permanent memory for string data.*@name: The string to store into the permernent memory.* Returns pointer to "struct tomoyo_path_info" on success, NULL otherwise.
259  Return Either @filename or @group is NULL. != NULL
Caller
NameDescribe
tomoyo_update_path_aclmoyo_update_path_acl - Update "struct tomoyo_path_acl" list.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_update_mkdev_aclmoyo_update_mkdev_acl - Update "struct tomoyo_mkdev_acl" list.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_update_path2_aclmoyo_update_path2_acl - Update "struct tomoyo_path2_acl" list.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_update_path_number_aclmoyo_update_path_number_acl - Update ioctl/chmod/chown/chgrp ACL.*@perm: Permission.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.
tomoyo_update_mount_aclmoyo_update_mount_acl - Write "struct tomoyo_mount_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_unix_networkmoyo_write_unix_network - Write "struct tomoyo_unix_acl" list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.