Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:21:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_file_ioctl - Smack check on ioctls*@file: the object*@cmd: what to do*@arg: unused* Relies heavily on the correct use of the ioctl command conventions.* Returns 0 if allowed, error code otherwise
Proto:static int smack_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
unsigned int | cmd | |
unsigned long | arg |
1555 | rc = 0 |
1557 | inode = file_inode(file) |
1559 | If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0 |
1563 | smk_ad_setfield_u_fs_path( & ad, f_path) |
1565 | If _IOC_DIR(cmd) & _IOC_WRITE Then |
1567 | rc = smk_bu_file(file, MAY_WRITE, rc) |
1572 | rc = smk_bu_file(file, MAY_READ, rc) |
1575 | Return rc |
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 |