Function report |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-28 19:40:09 |
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_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().
Proto:struct tomoyo_domain_info *tomoyo_assign_domain(const char *domainname, const bool transit)
Type:struct tomoyo_domain_info
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | domainname | |
const bool | transit |
527 | struct tomoyo_domain_info e = {} |
529 | bool created = false |
531 | If entry Then |
532 | If transit Then |
539 | If External variable definitions. ********* && Not Profile table. Memory is allocated as needed. [ Profile number to use. ] Then Return NULL |
543 | Return entry |
547 | If strlen - Find the length of a string*@s: The string to be sized >= TOMOYO_EXEC_TMPSIZE - 10 || Not tomoyo_correct_domain(domainname) Then Return NULL |
555 | If transit && moyo_namespace_jump - Check for namespace jump.*@domainname: Name of domain.* Returns true if namespace differs, false otherwise. Then Return NULL |
558 | If Not Namespace for this domain. Never NULL. Then Return NULL |
565 | If transit Then |
566 | domain = moyo_domain - Get "struct tomoyo_domain_info" for current thread.* Returns pointer to "struct tomoyo_domain_info" for current thread. |
569 | memcpy( Group numbers to use. , Group numbers to use. , size of Group numbers to use. ) |
572 | If Not Name of this domain. Never NULL. Then Return NULL |
574 | If mutex_lock_interruptible( & tomoyo_policy_lock) Then Go to out |
577 | If Not entry Then |
578 | entry = tomoyo_commit_ok( & e, size of e ) |
579 | If entry Then |
586 | out : |
589 | If created Then |
605 | Return entry |
Name | Describe |
---|---|
tomoyo_find_next_domain | moyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
tomoyo_write_self | moyo_write_self - write() for /sys/kernel/security/tomoyo/self_domain interface |
tomoyo_write_domain | moyo_write_domain - Write domain 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 |