函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocate and free functions for each kind of security blob.

函数原型:static int inode_alloc_security(struct inode *inode)

返回类型:int

参数:

类型参数名称
struct inode *inode
245  isec等于selinux_inode(inode)
246  sid等于get the subjective security ID of the current task
248  spin_lock_init( & lock)
249  初始化链表头
250  back pointer to inode object 等于inode
251  SID of this object 等于SECINITSID_UNLABELED
252  security class of this object 等于SECCLASS_FILE
253  SID of creating task 等于sid
254  initialization flag 等于 invalid or not initialized
256  返回:0
调用者
名称描述
selinux_inode_alloc_securityde security operations