函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_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().

函数原型:static int tomoyo_update_mkdev_acl(const u8 perm, struct tomoyo_acl_param *param)

返回类型:int

参数:

类型参数名称
const u8perm
struct tomoyo_acl_param *param
465  struct tomoyo_mkdev_acl e = { One of values in "enum tomoyo_acl_entry_type_index". = TOMOYO_TYPE_MKDEV_ACL, Bitmask of values in "enum tomoyo_mkdev_acl_index". = perm}
471  如果非tomoyo_parse_name_union(param, & name)或非tomoyo_parse_number_union(param, & mode)或非tomoyo_parse_number_union(param, & major)或非tomoyo_parse_number_union(param, & minor)则error等于负EINVAL
476  否则error等于moyo_update_domain - Update an entry for domain policy.*@new_entry: Pointer to "struct tomoyo_acl_info".*@size: Size of @new_entry in bytes.*@param: Pointer to "struct tomoyo_acl_param".*@check_duplicate: Callback function to find duplicated entry.
480  moyo_put_name_union - Drop reference on "struct tomoyo_name_union".*@ptr: Pointer to "struct tomoyo_name_union".* Returns nothing.
481  moyo_put_number_union - Drop reference on "struct tomoyo_number_union".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
482  moyo_put_number_union - Drop reference on "struct tomoyo_number_union".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
483  moyo_put_number_union - Drop reference on "struct tomoyo_number_union".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
484  返回:error
调用者
名称描述
tomoyo_write_filemoyo_write_file - Update file related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().