函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:superblock_alloc_security

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

返回类型:int

参数:

类型参数名称
struct super_block *sb
372  sbsec等于分配内存并置零
373  如果非sbsec则返回:负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  初始化链表头
378  spin_lock_init( & 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  返回:0
调用者
名称描述
selinux_sb_alloc_securitysuperblock security operations