函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-27 20:49:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static int smack_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr, const char **name, void **value, size_t *len)

返回类型:int

参数:

类型参数名称
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  如果namename等于XATTR_SMACK_SUFFIX
995  如果valuelen
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()
1007  如果may大于0且may按位与Controls directory labeling 的值不等于0且Is the directory transmuting?
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  如果( * value == NULL)则返回:负ENOMEM
1017  len等于strlen - Find the length of a string*@s: The string to be sized
1020  返回:0