函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:set uid and gid of cgroup dirs and files to that of the creator

函数原型:static int cgroup_kn_set_ugid(struct kernfs_node *kn)

返回类型:int

参数:

类型参数名称
struct kernfs_node *kn
3796  struct iattr iattr = {ia_valid = ATTR_UID | ATTR_GID, ia_uid = current_fsuid(), ia_gid = current_fsgid(), }
3800  如果uid_eq(ia_uid, GLOBAL_ROOT_UID)且gid_eq(ia_gid, GLOBAL_ROOT_GID)则返回:0
3804  返回:kernfs_setattr(kn, & iattr)
调用者
名称描述
cgroup_add_file
cgroup_mkdir