Function report |
Source Code:fs\xattr.c |
Create Date:2022-07-28 20:09:58 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:vfs_getxattr_alloc - allocate memory, if necessary, before calling getxattr* Allocate memory, if not already allocated, or re-allocate correct size,* before retrieving the extended attribute.
Proto:ssize_t vfs_getxattr_alloc(struct dentry *dentry, const char *name, char **xattr_value, size_t xattr_size, gfp_t flags)
Type:ssize_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dentry * | dentry | |
| const char * | name | |
| char ** | xattr_value | |
| size_t | xattr_size | |
| gfp_t | flags |
| 272 | value = xattr_value |
| 275 | error = Check permissions for extended attribute access. This is a bit complicated* because different namespaces have very different rules. |
| 282 | If Not get Then Return -EOPNOTSUPP |
| 288 | If Not value || error > xattr_size Then |
| 296 | xattr_value = value |
| 297 | Return error |
| Name | Describe |
|---|---|
| aa_xattrs_match | aa_xattrs_match - check whether a file matches the xattrs defined in profile*@bprm: binprm struct for the process to validate*@profile: profile to match against (NOT NULL)*@state: state to start match in* Returns: number of extended attributes that |
| ima_read_xattr | |
| evm_verify_hmac | vm_verify_hmac - calculate and compare the HMAC with the EVM xattr* Compute the HMAC on the dentry's protected set of extended attributes* and compare it against the stored security |
| evm_calc_hmac_or_hash | Calculate the HMAC value across the set of protected security xattrs.* Instead of retrieving the requested xattr, for performance, calculate* the hmac using the requested xattr value. Don't alloc/free memory for |
| evm_is_immutable |
| 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 |