Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set the file creation context in a security record to the same as the* objective context of the specified inode

Proto:static int selinux_kernel_create_files_as(struct cred *new, struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct cred *new
struct inode *inode
3959  isec = Get the security label of an inode.
3960  tsec = selinux_cred(new)
3961  sid = get the subjective security ID of the current task
3964  ret = avc_has_perm - Check permissions and perform any appropriate auditing
3970  If ret == 0 Then fscreate SID = SID of this object
3972  Return ret