Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Determine the label for an inode that might be unioned.

Proto:static int selinux_determine_inode_label(const struct task_security_struct *tsec, struct inode *dir, const struct qstr *name, u16 tclass, unsigned int *_new_isid)

Type:int

Parameter:

TypeParameterName
const struct task_security_struct *tsec
struct inode *dir
const struct qstr *name
u16tclass
unsigned int *_new_isid
1791  sbsec = s_security
1793  If which mount options were specified & Non-mount related flags && labeling behavior == use mountpoint labeling Then
1795  _new_isid = SECURITY_FS_USE_MNTPOINT context for files
1796  Else if which mount options were specified & SBLABEL_MNT && fscreate SID Then
1798  _new_isid = fscreate SID
1799  Else
1800  dsec = Get the security label of an inode.
1801  Return security_transition_sid( & selinux_state, current SID , SID of this object , tclass, name, _new_isid)
1806  Return 0
Caller
NameDescribe
may_createCheck whether a task can create a file.
selinux_dentry_init_security
selinux_dentry_create_files_as
selinux_inode_init_security