Function report | 
Source Code:security\tomoyo\file.c | 
Create Date:2022-07-28 19:42:12 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:moyo_path2_perm - Check permission for "rename", "link" and "pivot_root".*@operation: Type of operation.*@path1: Pointer to "struct path".*@path2: Pointer to "struct path".* Returns 0 on success, negative value otherwise.
Proto:int tomoyo_path2_perm(const u8 operation, const struct path *path1, const struct path *path2)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const u8 | operation | |
| const struct path * | path1 | |
| const struct path * | path2 | 
| 910 | struct tomoyo_obj_info obj = { First pathname. Initialized with { NULL, NULL } if no path. = {mnt = mnt, dentry = dentry}, Second pathname. Initialized with { NULL, NULL } if no path. = {mnt = mnt, dentry = dentry}} | 
| 916 | If tomoyo_init_request_info( & r, NULL, Mapping table from "enum tomoyo_path2_acl_index" to "enum tomoyo_mac_index".[operation]) == TOMOYO_CONFIG_DISABLED Then Return 0 | 
| 919 | name = NULL | 
| 920 | name = NULL | 
| 921 | idx = moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). | 
| 926 | Case operation == TOMOYO_TYPE_RENAME | 
| 927 | Case operation == TOMOYO_TYPE_LINK | 
| 931 | Case operation == TOMOYO_TYPE_PIVOT_ROOT | 
| 934 | Break | 
| 936 | For holding parameters specific to operations which deal files.* NULL if not dealing files. = obj | 
| 941 | Do | 
| 945 | out : | 
| 949 | If One of tomoyo_mode_index . != TOMOYO_CONFIG_ENFORCING Then error = 0 | 
| 951 | Return error | 
| Name | Describe | 
|---|---|
| tomoyo_path_link | moyo_path_link - Target for security_path_link().*@old_dentry: Pointer to "struct dentry".*@new_dir: Pointer to "struct path".*@new_dentry: Pointer to "struct dentry".* Returns 0 on success, negative value otherwise. | 
| tomoyo_path_rename | moyo_path_rename - Target for security_path_rename().*@old_parent: Pointer to "struct path".*@old_dentry: Pointer to "struct dentry".*@new_parent: Pointer to "struct path".*@new_dentry: Pointer to "struct dentry". | 
| tomoyo_sb_pivotroot | moyo_sb_pivotroot - Target for security_sb_pivotroot().*@old_path: Pointer to "struct path".*@new_path: Pointer to "struct path".* Returns 0 on success, negative value otherwise. | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |