Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:21:19 |
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_fcntl - Smack check on fcntl*@file: the object*@cmd: what action to check*@arg: unused* Generally these operations are harmless
Proto:static int smack_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
unsigned int | cmd | |
unsigned long | arg |
1617 | rc = 0 |
1618 | inode = file_inode(file) |
1620 | If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0 |
1625 | Break |
1629 | smk_ad_setfield_u_fs_path( & ad, f_path) |
1631 | rc = smk_bu_file(file, Locks should be writes, but ... , rc) |
1632 | Break |
1636 | smk_ad_setfield_u_fs_path( & ad, f_path) |
1638 | rc = smk_bu_file(file, MAY_WRITE, rc) |
1639 | Break |
1640 | Default |
1641 | Break |
1644 | 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 |