函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_sb_alloc_security - allocate a superblock blob*@sb: the superblock getting the blob* Returns 0 on success or -ENOMEM on error.

函数原型:static int smack_sb_alloc_security(struct super_block *sb)

返回类型:int

参数:

类型参数名称
struct super_block *sb
543  sbsp等于分配内存并置零
545  如果(sbsp == NULL)则返回:负ENOMEM
548  smk_root等于smack_known_floor
549  smk_default等于smack_known_floor
550  smk_floor等于smack_known_floor
551  smk_hat等于smack_known_hat
555  s_security等于sbsp
557  返回:0