Function report |
Source Code:security\tomoyo\file.c |
Create Date:2022-07-28 19:42:06 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_mkdev_perm - Check permission for "mkblock" and "mkchar".*@operation: Type of operation. (TOMOYO_TYPE_MKCHAR or TOMOYO_TYPE_MKBLOCK)*@path: Pointer to "struct path".*@mode: Create mode.*@dev: Device number.
Proto:int tomoyo_mkdev_perm(const u8 operation, const struct path *path, const unsigned int mode, unsigned int dev)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const u8 | operation | |
| const struct path * | path | |
| const unsigned int | mode | |
| unsigned int | dev |
| 863 | struct tomoyo_obj_info obj = { First pathname. Initialized with { NULL, NULL } if no path. = {mnt = mnt, dentry = dentry}, } |
| 870 | If tomoyo_init_request_info( & r, NULL, Mapping table from "enum tomoyo_mkdev_acl_index" to "enum tomoyo_mac_index".[operation]) == TOMOYO_CONFIG_DISABLED Then Return 0 |
| 873 | idx = moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). |
| 876 | For holding parameters specific to operations which deal files.* NULL if not dealing files. = obj |
| 877 | dev = new_decode_dev(dev) |
| 889 | If One of tomoyo_mode_index . != TOMOYO_CONFIG_ENFORCING Then error = 0 |
| 891 | Return error |
| Name | Describe |
|---|---|
| tomoyo_path_mknod | moyo_path_mknod - Target for security_path_mknod().*@parent: Pointer to "struct path".*@dentry: Pointer to "struct dentry".*@mode: DAC permission mode.*@dev: Device attributes.* 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 |