| Function report | 
| Source Code: security\tomoyo\file.c | Create Date:2022-07-28 19:41:56 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:moyo_check_open_permission - Check permission for "read" and "write".*@domain: Pointer to "struct tomoyo_domain_info".*@path: Pointer to "struct path".*@flag: Flags for open().* Returns 0 on success, negative value otherwise.
Proto:int tomoyo_check_open_permission(struct tomoyo_domain_info *domain, const struct path *path, const int flag)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct tomoyo_domain_info * | domain | |
| const struct path * | path | |
| const int | flag | 
| 757 | error = 0 | 
| 760 | struct tomoyo_obj_info obj = { First pathname. Initialized with { NULL, NULL } if no path. = {mnt = mnt, dentry = dentry}, } | 
| 765 | name = NULL | 
| 767 | idx = moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). | 
| 768 | If acc_mode && tomoyo_init_request_info( & r, domain, TOMOYO_MAC_FILE_OPEN) != TOMOYO_CONFIG_DISABLED Then | 
| 775 | For holding parameters specific to operations which deal files.* NULL if not dealing files. = obj | 
| 785 | out : | 
| 788 | If One of tomoyo_mode_index . != TOMOYO_CONFIG_ENFORCING Then error = 0 | 
| 790 | Return error | 
| Name | Describe | 
|---|---|
| tomoyo_bprm_check_security | moyo_bprm_check_security - Target for security_bprm_check().*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise. | 
| tomoyo_file_fcntl | moyo_file_fcntl - Target for security_file_fcntl().*@file: Pointer to "struct file".*@cmd: Command for fcntl().*@arg: Argument for @cmd.* Returns 0 on success, negative value otherwise. | 
| tomoyo_file_open | moyo_file_open - Target for security_file_open().*@f: Pointer to "struct file".*@cred: Pointer to "struct cred".* 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 |