Function report |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-28 19:39:45 |
Last Modify:2022-05-23 20:14:46 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_write_transition_control - Write "struct tomoyo_transition_control" list.*@param: Pointer to "struct tomoyo_acl_param".*@type: Type of this entry.* Returns 0 on success, negative value otherwise.
Proto:int tomoyo_write_transition_control(struct tomoyo_acl_param *param, const u8 type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_acl_param * | param | |
const u8 | type |
245 | struct tomoyo_transition_control e = {One of values in "enum tomoyo_transition_type". = type} |
248 | domainname = strstr - Find the first substring in a %NUL terminated string*@s1: The string to be searched*@s2: The string to search for |
250 | If domainname Then |
251 | domainname = '\0' |
252 | domainname += 6 |
253 | Else if type == TOMOYO_TRANSITION_CONTROL_NO_KEEP || type == TOMOYO_TRANSITION_CONTROL_KEEP Then |
255 | domainname = program |
256 | program = NULL |
259 | If Not tomoyo_correct_path(program) Then Return -EINVAL |
261 | Maybe NULL = tomoyo_get_name(program) |
262 | If Not Maybe NULL Then Go to out |
265 | If domainname && strcmp(domainname, "any") Then |
266 | If Not tomoyo_correct_domain(domainname) Then |
267 | If Not tomoyo_correct_path(domainname) Then Go to out |
271 | Maybe NULL = tomoyo_get_name(domainname) |
272 | If Not Maybe NULL Then Go to out |
278 | out : |
281 | Return error |
Name | Describe |
---|---|
tomoyo_write_exception | moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
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 |