函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\util.c Create Date:2022-07-27 21:16:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_parse_number_union - Parse a tomoyo_number_union.*@param: Pointer to "struct tomoyo_acl_param".*@ptr: Pointer to "struct tomoyo_number_union".* Returns true on success, false otherwise.

函数原型:bool tomoyo_parse_number_union(struct tomoyo_acl_param *param, struct tomoyo_number_union *ptr)

返回类型:bool

参数:

类型参数名称
struct tomoyo_acl_param *param
struct tomoyo_number_union *ptr
277  memset(ptr, 0, ptr的长度)
278  如果data[0]恒等于'@'则
279  data自加
280  Maybe NULL. 等于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.
281  返回:Maybe NULL. != NULL
283  data等于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.
284  type等于moyo_parse_ulong - Parse an "unsigned long" value.*@result: Pointer to "unsigned long".*@str: Pointer to string to parse.* Returns one of values in "enum tomoyo_value_type".* The @src is updated to point the first character after the value* on success.
285  如果type恒等于TOMOYO_VALUE_TYPE_INVALID则返回:false
287  values[0]等于v
288  One of values in "enum tomoyo_value_type". [0]等于type
289  如果非data
290  values[1]等于v
291  One of values in "enum tomoyo_value_type". [1]等于type
292  返回:true
294  如果data自加不等于'-'则返回:false
296  type等于moyo_parse_ulong - Parse an "unsigned long" value.*@result: Pointer to "unsigned long".*@str: Pointer to string to parse.* Returns one of values in "enum tomoyo_value_type".* The @src is updated to point the first character after the value* on success.
297  如果type恒等于TOMOYO_VALUE_TYPE_INVALIDdatavalues[0]大于v则返回:false
299  values[1]等于v
300  One of values in "enum tomoyo_value_type". [1]等于type
301  返回:true
调用者
名称描述
tomoyo_get_conditionmoyo_get_condition - Parse condition part.*@param: Pointer to "struct tomoyo_acl_param".* Returns pointer to "struct tomoyo_condition" on success, NULL otherwise.
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_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_groupmoyo_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.
tomoyo_write_inet_networkmoyo_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().