Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cred.c Create Date:2022-07-28 09:32:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_create_files_as - Set the LSM file create context in a set of credentials*@new: The credentials to alter*@inode: The inode to take the context from* Change the LSM file creation context in a set of credentials to be the same* as the object context of

Proto:int set_create_files_as(struct cred *new, struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct cred *new
struct inode *inode
780  If Not uid_valid(i_uid) || Not gid_valid(i_gid) Then Return -EINVAL
782  UID for VFS ops = i_uid
783  GID for VFS ops = i_gid
784  Return security_kernel_create_files_as(new, inode)