Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_task_to_inode

Proto:static void selinux_task_to_inode(struct task_struct *p, struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
struct inode *inode
4172  isec = selinux_inode(inode)
4173  sid = get the objective security ID of a task
4175  spin_lock( & lock)
4176  security class of this object = inode_mode_to_security_class(i_mode)
4177  SID of this object = sid
4178  initialization flag = initialized
4179  spin_unlock( & lock)