Function report |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-28 19:40:01 |
Last Modify:2022-05-23 20:14:46 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_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().
Proto:struct tomoyo_policy_namespace *tomoyo_assign_namespace(const char *domainname)
Type:struct tomoyo_policy_namespace
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | domainname |
466 | cp = domainname |
467 | len = 0 |
470 | len++ |
474 | If len >= TOMOYO_EXEC_TMPSIZE - 10 || Not tomoyo_domain_def(domainname) Then Return NULL |
476 | entry = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
477 | If Not entry Then Return NULL |
479 | If mutex_lock_interruptible( & tomoyo_policy_lock) Then Go to out |
482 | If Not ptr && tomoyo_memory_ok(entry) Then |
486 | memmove(name, domainname, len) |
490 | entry = NULL |
493 | out : |
495 | Return ptr |
Name | Describe |
---|---|
tomoyo_assign_domain | moyo_assign_domain - Create a domain or a namespace.*@domainname: The name of domain.*@transit: True if transit to domain found or created.* Returns pointer to "struct tomoyo_domain_info" on success, NULL otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_parse_policy | moyo_parse_policy - Parse a policy line.*@head: Poiter to "struct tomoyo_io_buffer".*@line: Line to parse.* 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 |