函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_inode_listsecurity - list the Smack attributes*@inode: the object*@buffer: where they go*@buffer_size: size of buffer

函数原型:static int smack_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size)

返回类型:int

参数:

类型参数名称
struct inode *inode
char *buffer
size_tbuffer_size
1487  len等于XATTR_NAME_SMACK的长度
1489  如果buffer不等于NULLlen小于等于buffer_sizememcpy(buffer, XATTR_NAME_SMACK, len)
1492  返回:len