Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\procattr.c Create Date:2022-07-28 19:52:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static char *split_token_from_name(const char *op, char *args, u64 *token)

Type:char

Parameter:

TypeParameterName
const char *op
char *args
u64 *token
82  token = simple_strtoull - convert a string to an unsigned long long*@cp: The start of the string*@endp: A pointer to the end of the parsed string will be placed here*@base: The number base to use* This function is obsolete. Please use kstrtoull instead.
83  If name == args || name != '^' Then
84  AA_ERROR("%s: Invalid input '%s'", op, args)
85  Return ERR_PTR( - EINVAL)
88  name++
89  If Not name Then name = NULL
91  Return name
Caller
NameDescribe
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