Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 18:57:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_inode_setattr
Proto:static int selinux_inode_setattr(struct dentry *dentry, struct iattr *iattr)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry | |
struct iattr * | iattr |
3092 | cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
3095 | av = FILE__WRITE |
3098 | If ia_valid & Not a change, but a change it Then |
3099 | ia_valid &= ~( ATTR_KILL_SUID | ATTR_KILL_SGID | Attribute flags. These should be or-ed together to figure out what* has been changed! | Not a change, but a change it ) |
3101 | If Not ia_valid Then Return 0 |
3109 | If selinux_policycap_openperm() && s_magic != SOCKFS_MAGIC && ia_valid & ATTR_SIZE && Not (ia_valid & ATTR_FILE) Then av |= FILE__OPEN |
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 |