函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Determine the label for an inode that might be unioned.

函数原型: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)

返回类型:int

参数:

类型参数名称
const struct task_security_struct *tsec
struct inode *dir
const struct qstr *name
u16tclass
unsigned int *_new_isid
1791  sbsec等于s_security
1793  如果 which mount options were specified 按位与Non-mount related flags labeling behavior 恒等于use mountpoint labeling
1795  _new_isid等于 SECURITY_FS_USE_MNTPOINT context for files
1796  否则如果 which mount options were specified 按位与SBLABEL_MNT fscreate SID
1798  _new_isid等于 fscreate SID
1799  否则
1800  dsec等于Get the security label of an inode.
1801  返回:security_transition_sid( & selinux_state, current SID , SID of this object , tclass, name, _new_isid)
1806  返回:0
调用者
名称描述
may_createCheck whether a task can create a file.
selinux_dentry_init_security
selinux_dentry_create_files_as
selinux_inode_init_security