Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:21:15 |
| 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_lock - Smack check on file locking*@file: the object*@cmd: unused* Returns 0 if current has lock access, error code otherwise
Proto:static int smack_file_lock(struct file *file, unsigned int cmd)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file | |
| unsigned int | cmd |
| 1589 | inode = file_inode(file) |
| 1591 | If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0 |
| 1595 | smk_ad_setfield_u_fs_path( & ad, f_path) |
| 1597 | rc = smk_bu_file(file, Locks should be writes, but ... , rc) |
| 1598 | 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 |