函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\tomoyo\common.c Create Date:2022-07-27 21:05:42
Last Modify:2020-03-18 09:15:18 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:moyo_add_entry - Add an ACL to current thread's domain. Used by learning mode.*@domain: Pointer to "struct tomoyo_domain_info".*@header: Lines containing ACL.* Returns nothing.

函数原型:static void tomoyo_add_entry(struct tomoyo_domain_info *domain, char *header)

返回类型:void

参数:

类型参数名称
struct tomoyo_domain_info *domain
char *header
2002  char * realpath = NULL
2003  char * argv0 = NULL
2004  char * symlink = NULL
2005  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
2008  如果非cp则返回
2010  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
2011  如果非cp则返回
2013  cp自加等于'\0'
2014  len等于strlen - Find the length of a string*@s: The string to be sized加1
2016  如果cp恒等于'f'则
2017  argv0等于strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
2018  如果argv0
2019  argv0加等于10
2022  realpath等于strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
2023  如果realpath
2024  realpath加等于8
2027  symlink等于strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for
2028  如果symlinklen加等于moyo_truncate - Truncate a line.*@str: String to truncate.* Returns length of truncated @str.加1
2031  buffer等于开辟内存
2032  如果非buffer则返回
2034  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
2035  如果realpathmoyo_addprintf - strncat()-like-snprintf().*@buffer: Buffer to write to. Must be '\0'-terminated.*@len: Size of @buffer.*@fmt: The printf()'s format string, followed by parameters.* Returns nothing.
2037  如果argv0moyo_addprintf - strncat()-like-snprintf().*@buffer: Buffer to write to. Must be '\0'-terminated.*@len: Size of @buffer.*@fmt: The printf()'s format string, followed by parameters.* Returns nothing.
2039  如果symlinkmoyo_addprintf - strncat()-like-snprintf().*@buffer: Buffer to write to. Must be '\0'-terminated.*@len: Size of @buffer.*@fmt: The printf()'s format string, followed by parameters.* Returns nothing.
2041  tomoyo_normalize_line(buffer)
2042  如果非moyo_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.moyo_update_stat - Update statistic counters.*@index: Index for policy type.* Returns nothing.
2045  释放内存
调用者
名称描述
tomoyo_supervisormoyo_supervisor - Ask for the supervisor's decision