Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:34:15 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_assign_profile - Create a new profile.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number to create.* Returns pointer to "struct tomoyo_profile" on success, NULL otherwise.
Proto:static struct tomoyo_profile *tomoyo_assign_profile(struct tomoyo_policy_namespace *ns, const unsigned int profile)
Type:struct tomoyo_profile
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_policy_namespace * | ns | |
const unsigned int | profile |
496 | If profile >= Profile number is an integer between 0 and 255. Then Return NULL |
501 | 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). |
502 | If mutex_lock_interruptible( & tomoyo_policy_lock) Then Go to out |
505 | If Not ptr && tomoyo_memory_ok(entry) Then |
507 | default_config = TOMOYO_CONFIG_DISABLED | TOMOYO_CONFIG_WANT_GRANT_LOG | TOMOYO_CONFIG_WANT_REJECT_LOG |
510 | memset(config, TOMOYO_CONFIG_USE_DEFAULT, size of config ) |
518 | entry = NULL |
521 | out : |
523 | Return ptr |
Name | Describe |
---|---|
tomoyo_write_profile | moyo_write_profile - Write profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise. |
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 |