Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:55:28 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:may_rename
Proto:static inline int may_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | old_dir | |
| struct dentry * | old_dentry | |
| struct inode * | new_dir | |
| struct dentry * | new_dentry |
| 1916 | old_is_dir = d_is_dir(old_dentry) |
| 1919 | type = LSM_AUDIT_DATA_DENTRY |
| 1921 | dentry = old_dentry |
| 1932 | If old_is_dir && new_dir != old_dir Then |
| 1940 | dentry = new_dentry |
| 1941 | av = DIR__ADD_NAME | DIR__SEARCH |
| 1942 | If d_is_positive(new_dentry) Then av |= DIR__REMOVE_NAME |
| 1948 | If d_is_positive(new_dentry) Then |
| 1950 | new_is_dir = d_is_dir(new_dentry) |
| 1959 | Return 0 |
| Name | Describe |
|---|---|
| selinux_inode_rename |
| 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 |