Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_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().

Proto:static int tomoyo_update_mount_acl(struct tomoyo_acl_param *param)

Type:int

Parameter:

TypeParameterName
struct tomoyo_acl_param *param
985  struct tomoyo_mount_acl e = { One of values in "enum tomoyo_acl_entry_type_index". = TOMOYO_TYPE_MOUNT_ACL}
988  If Not tomoyo_parse_name_union(param, & dev_name) || Not tomoyo_parse_name_union(param, & dir_name) || Not tomoyo_parse_name_union(param, & fs_type) || Not tomoyo_parse_number_union(param, & flags) Then error = -EINVAL
993  Else 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.
996  moyo_put_name_union - Drop reference on "struct tomoyo_name_union".*@ptr: Pointer to "struct tomoyo_name_union".* Returns nothing.
997  moyo_put_name_union - Drop reference on "struct tomoyo_name_union".*@ptr: Pointer to "struct tomoyo_name_union".* Returns nothing.
998  moyo_put_name_union - Drop reference on "struct tomoyo_name_union".*@ptr: Pointer to "struct tomoyo_name_union".* Returns nothing.
999  moyo_put_number_union - Drop reference on "struct tomoyo_number_union".*@ptr: Pointer to "struct tomoyo_number_union".* Returns nothing.
1000  Return error
Caller
NameDescribe
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().