函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_domain_def - Check whether the given token can be a domainname.*@buffer: The token to check.* Returns true if @buffer possibly be a domainname, false otherwise.

函数原型:bool tomoyo_domain_def(const unsigned char *buffer)

返回类型:bool

参数:

类型参数名称
const unsigned char *buffer
568  如果buffer不等于'<'则返回:false
570  cp等于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
571  如果非cplen等于strlen - Find the length of a string*@s: The string to be sized
573  否则len等于cpbuffer
575  如果buffer[len - 1]不等于'>'或非moyo_correct_word2 - Validate a string.*@string: The string to check. Maybe non-'\0'-terminated.*@len: Length of @string.* Check whether the given string follows the naming rules.* Returns true if @string follows the naming rules, false otherwise.则返回:false
578  返回:true
调用者
名称描述
tomoyo_assign_namespacemoyo_assign_namespace - Create a new namespace.*@domainname: Name of namespace to create.* Returns pointer to "struct tomoyo_policy_namespace" on success,* NULL otherwise.* Caller holds tomoyo_read_lock().
tomoyo_correct_domainmoyo_correct_domain - Check whether the given domainname follows the naming rules.*@domainname: The domainname to check.* Returns true if @domainname follows the naming rules, false otherwise.