函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_str_starts - Check whether the given string starts with the given keyword

函数原型:bool tomoyo_str_starts(char **src, const char *find)

返回类型:bool

参数:

类型参数名称
char **src
const char *find
384  len等于strlen - Find the length of a string*@s: The string to be sized
385  tmp等于src
387  如果字符串指定长度比较则返回:false
389  tmp加等于len
390  src等于tmp
391  返回:true
调用者
名称描述
tomoyo_write_taskmoyo_write_task - Update task related list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_domain2moyo_write_domain2 - Write domain policy.*@ns: Pointer to "struct tomoyo_policy_namespace".*@list: Pointer to "struct list_head".*@data: Policy to be interpreted.*@is_delete: True if it is a delete request.* Returns 0 on success, negative value otherwise.
tomoyo_write_domainmoyo_write_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_read_pidmoyo_read_pid - Get domainname of the specified PID
tomoyo_write_exceptionmoyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock().
tomoyo_write_statmoyo_write_stat - Set memory quota.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0.
tomoyo_write_miscmoyo_write_misc - Update environment variable list.*@param: Pointer to "struct tomoyo_acl_param".* Returns 0 on success, negative value otherwise.