Function report | 
Source Code:security\safesetid\securityfs.c | 
Create Date:2022-07-28 19:55:33 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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.
Proto:static int parse_policy_line(struct file *file, char *buf, struct setuid_rule *rule)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | 
| 41 | child_str = '\0' | 
| 42 | child_str++ | 
| 44 | ret = kstrtou32(buf, 0, & parsed_parent) | 
| 48 | ret = kstrtou32(child_str, 0, & parsed_child) | 
| 57 | Return 0 | 
| Name | Describe | 
|---|---|
| handle_policy_update | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |