函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:int set_create_files_as(struct cred *new, struct inode *inode)

返回类型:int

参数:

类型参数名称
struct cred *new
struct inode *inode
780  如果非uid_valid(i_uid)或非gid_valid(i_gid)则返回:负EINVAL
782  UID for VFS ops 等于i_uid
783  GID for VFS ops 等于i_gid
784  返回:security_kernel_create_files_as(new, inode)