函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:In the case the input buffer contains one or more invalid UIDs, the kuid_t* variables pointed to by @parent and @child will get updated but this* function will return an error.* Contents of @buf may be modified.

函数原型:static int parse_policy_line(struct file *file, char *buf, struct setuid_rule *rule)

返回类型:int

参数:

类型参数名称
struct file *file
char *buf
struct setuid_rule *rule
38  child_str等于strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
39  如果(child_str == NULL)则返回:负EINVAL
41  child_str等于'\0'
42  child_str自加
44  ret等于kstrtou32(buf, 0, & parsed_parent)
45  如果ret则返回:ret
48  ret等于kstrtou32(child_str, 0, & parsed_child)
49  如果ret则返回:ret
52  src_uid等于make_kuid - Map a user-namespace uid pair into a kuid
53  dst_uid等于make_kuid - Map a user-namespace uid pair into a kuid
54  如果非uid_valid(src_uid)或非uid_valid(dst_uid)则返回:负EINVAL
57  返回:0
调用者
名称描述
handle_policy_update