Function report |
Source Code:security\integrity\evm\evm_crypto.c |
Create Date:2022-07-28 20:00:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Calculate the hmac and update security.evm xattr* Expects to be called with i_mutex locked.
Proto:int evm_update_evmxattr(struct dentry *dentry, const char *xattr_name, const char *xattr_value, size_t xattr_value_len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry | |
const char * | xattr_name | |
const char * | xattr_value | |
size_t | xattr_value_len |
307 | rc = 0 |
313 | rc = evm_is_immutable(dentry, inode) |
319 | algo = HASH_ALGO_SHA1 |
320 | rc = evm_calc_hmac(dentry, xattr_name, xattr_value, xattr_value_len, & data) |
322 | If rc == 0 Then |
323 | type = EVM_XATTR_HMAC |
324 | rc = __vfs_setxattr_noperm(dentry, XATTR_NAME_EVM, & data[1], SHA1_DIGEST_SIZE + 1, 0) |
328 | rc = __vfs_removexattr(dentry, XATTR_NAME_EVM) |
330 | Return rc |
Name | Describe |
---|---|
evm_inode_post_setxattr | vm_inode_post_setxattr - update 'security |
evm_inode_post_removexattr | vm_inode_post_removexattr - update 'security |
evm_inode_post_setattr | vm_inode_post_setattr - update 'security |
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 |