函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:_inode_smack - initialize an inode security blob*@inode: inode to extract the info from*@skp: a pointer to the Smack label entry to use in the blob

函数原型:static void init_inode_smack(struct inode *inode, struct smack_known *skp)

返回类型:void

参数:

类型参数名称
struct inode *inode
struct smack_known *skp
315  isp等于smack_inode(inode)
317  label of the fso 等于skp
318  smack inode flags 等于0
319  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & itialization lock )
调用者
名称描述
smack_set_mnt_optssmack_set_mnt_opts - set Smack specific mount options*@sb: the file system superblock*@mnt_opts: Smack mount options*@kern_flags: mount option from kernel space or user space*@set_kern_flags: where to store converted mount opts* Returns 0 on success, an
smack_inode_alloc_securitysmack_inode_alloc_security - allocate an inode blob*@inode: the inode in need of a blob* Returns 0