Function report |
Source Code:fs\attr.c |
Create Date:2022-07-28 20:08:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:setattr_prepare - check if attribute changes to a dentry are allowed*@dentry: dentry to check*@attr: attributes to change* Check if we are allowed to change the attributes contained in @attr* in the given dentry
Proto:int setattr_prepare(struct dentry *dentry, struct iattr *attr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| struct iattr * | attr |
| 77 | If ia_valid & Not a change, but a change it Then Go to kill_priv |
| 100 | If ia_valid & ( ATTR_MTIME_SET | ATTR_ATIME_SET | ATTR_TIMES_SET) Then |
| 105 | kill_priv : |
| 107 | If ia_valid & ATTR_KILL_PRIV Then |
| 110 | error = security_inode_killpriv(dentry) |
| 115 | Return 0 |
| Name | Describe |
|---|---|
| simple_setattr | simple_setattr - setattr for simple filesystem*@dentry: dentry*@iattr: iattr structure* Returns 0 on success, -error on failure |
| ramfs_nommu_setattr | handle a change of attributes* - we're specifically interested in a change of size |
| 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 |