Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int smack_sb_alloc_security(struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
543  sbsp = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
545  If (sbsp == NULL) Then Return -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  Return 0