Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\security.c Create Date:2022-07-28 18:39:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:security_inode_init_security

Proto:int security_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct inode *dir
const struct qstr *qstr
const initxattrsinitxattrs
void *fs_data
977  If Value for the false possibility is greater at compile time(IS_PRIVATE(inode)) Then Return 0
980  If Not initxattrs Then Return call_int_hook(inode_init_security, - EOPNOTSUPP, inode, dir, qstr, NULL, NULL, NULL)
983  memset(new_xattrs, 0, size of new_xattrs )
984  lsm_xattr = new_xattrs
985  ret = call_int_hook(inode_init_security, - EOPNOTSUPP, inode, dir, qstr, & name, & value, & value_len)
989  If ret Then Go to out
992  evm_xattr = lsm_xattr + 1
993  ret = evm_inode_init_security(inode, lsm_xattr, evm_xattr)
994  If ret Then Go to out
996  ret = initxattrs(inode, new_xattrs, fs_data)
997  out :
998  When value != NULL cycle kfree(value)
1000  Return If ret == -EOPNOTSUPP Then 0 Else ret