Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check whether a task can create a file.

Proto:static int may_create(struct inode *dir, struct dentry *dentry, u16 tclass)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
u16tclass
1814  tsec = selinux_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.())
1821  dsec = Get the security label of an inode.
1822  sbsec = s_security
1824  sid = current SID
1826  type = LSM_AUDIT_DATA_DENTRY
1827  dentry = dentry
1829  rc = avc_has_perm - Check permissions and perform any appropriate auditing
1833  If rc Then Return rc
1836  rc = Determine the label for an inode that might be unioned.
1838  If rc Then Return rc
1841  rc = avc_has_perm - Check permissions and perform any appropriate auditing
1843  If rc Then Return rc
1846  Return avc_has_perm - Check permissions and perform any appropriate auditing
Caller
NameDescribe
selinux_inode_create
selinux_inode_symlink
selinux_inode_mkdir
selinux_inode_mknod