Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:36:30 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static void tomoyo_add_entry(struct tomoyo_domain_info *domain, char *header)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If Not cp Then Return |
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 | If Not cp Then Return |
2013 | cp++ = '\0' |
2016 | If cp == 'f' Then |
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 | If argv0 Then |
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 | If realpath Then |
2024 | realpath += 8 |
2031 | buffer = Allocation memory |
2032 | If Not buffer Then Return |
2041 | tomoyo_normalize_line(buffer) |
Name | Describe |
---|---|
tomoyo_supervisor | moyo_supervisor - Ask for the supervisor's decision |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |