Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:superblock_alloc_security

Proto:static int superblock_alloc_security(struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
372  sbsec = 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).
373  If Not sbsec Then Return -ENOMEM
376  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.( & lock)
377  Initialization list head
378  Process spin lock initialization( & isec_lock)
379  back pointer to sb object = sb
380  SID of file system superblock = SECINITSID_UNLABELED
381  default SID for labeling = SECINITSID_FILE
382  SECURITY_FS_USE_MNTPOINT context for files = SECINITSID_UNLABELED
383  s_security = sbsec
385  Return 0
Caller
NameDescribe
selinux_sb_alloc_securitysuperblock security operations