Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_inode_init_security - copy out the smack from an inode*@inode: the newly created inode*@dir: containing directory object*@qstr: unused*@name: where to put the attribute name*@value: where to put the attribute value*@len: where to put the length of

Proto:static int smack_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr, const char **name, void **value, size_t *len)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct inode *dir
const struct qstr *qstr
const char **name
void **value
size_t *len
986  issp = smack_inode(inode)
987  skp = Present a pointer to the smack label in the current task blob.
988  isp = Present a pointer to the smack label entry in an inode blob.
989  dsp = Present a pointer to the smack label entry in an inode blob.
992  If name Then name = XATTR_SMACK_SUFFIX
995  If value && len Then
996  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
997  may = These functions are in smack_access.c
999  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1009  isp = dsp
1013  value = kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error
1014  If ( * value == NULL) Then Return -ENOMEM
1017  len = strlen - Find the length of a string*@s: The string to be sized
1020  Return 0