Function report |
Source Code:security\tomoyo\tomoyo.c |
Create Date:2022-07-28 19:46:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static int tomoyo_path_mknod(const struct path *parent, struct dentry *dentry, umode_t mode, unsigned int dev)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct path * | parent | |
struct dentry * | dentry | |
umode_t | mode | |
unsigned int | dev |
223 | type = TOMOYO_TYPE_CREATE |
227 | Case & == S_IFCHR |
228 | type = TOMOYO_TYPE_MKCHAR |
229 | Break |
230 | Case & == S_IFBLK |
231 | type = TOMOYO_TYPE_MKBLOCK |
232 | Break |
233 | Default |
234 | Go to no_dev |
237 | no_dev : |
239 | Case & == S_IFIFO |
240 | type = TOMOYO_TYPE_MKFIFO |
241 | Break |
242 | Case & == S_IFSOCK |
243 | type = TOMOYO_TYPE_MKSOCK |
244 | Break |
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 |