函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:split_token_from_name - separate a string of form <token>^<name>*@op: operation being checked*@args: string to parse (NOT NULL)*@token: stores returned parsed token value (NOT NULL)* Returns: start position of name after token else NULL on failure

函数原型:static char *split_token_from_name(const char *op, char *args, u64 *token)

返回类型:char

参数:

类型参数名称
const char *op
char *args
u64 *token
82  token等于转换字符串为无符号长整形
83  如果name恒等于argsname不等于'^'则
84  AA_ERROR("%s: Invalid input '%s'", op, args)
85  返回:错误号
88  name自加
89  如果非namename = NULL
91  返回:name
调用者
名称描述
aa_setprocattr_changehataa_setprocattr_chagnehat - handle procattr interface to change_hat*@args: args received from writing to /proc//attr/current (NOT NULL)*@size: size of the args*@flags: set of flags governing behavior* Returns: %0 or error code if change_hat fails