Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:55:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check whether a task can link, unlink, or rmdir a file/directory.
Proto:static int may_link(struct inode *dir, struct dentry *dentry, int kind)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | dir | |
struct dentry * | dentry | |
int | kind |
1871 | type = LSM_AUDIT_DATA_DENTRY |
1874 | av = DIR__SEARCH |
1875 | av |= If kind Then DIR__REMOVE_NAME Else DIR__ADD_NAME |
1883 | av = FILE__LINK |
1884 | Break |
1885 | Case kind == MAY_UNLINK |
1886 | av = FILE__UNLINK |
1887 | Break |
1889 | av = DIR__RMDIR |
1890 | Break |
1891 | Default |
1899 | Return rc |
Name | Describe |
---|---|
selinux_inode_link | |
selinux_inode_unlink | |
selinux_inode_rmdir |
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 |