Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate and free functions for each kind of security blob.

Proto:static int inode_alloc_security(struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct inode *inode
245  isec = selinux_inode(inode)
246  sid = get the subjective security ID of the current task
248  Process spin lock initialization( & lock)
249  Initialization list head
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  Return 0
Caller
NameDescribe
selinux_inode_alloc_securityde security operations