函数逻辑报告 |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-27 21:03:33 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:static struct tomoyo_profile *tomoyo_assign_profile(struct tomoyo_policy_namespace *ns, const unsigned int profile)
返回类型:struct tomoyo_profile
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tomoyo_policy_namespace * | ns | |
const unsigned int | profile |
496 | 如果profile大于等于Profile number is an integer between 0 and 255. 则返回:NULL |
502 | 如果mutex_lock_interruptible( & tomoyo_policy_lock)则转到:out |
505 | 如果非ptr且tomoyo_memory_ok(entry)则 |
507 | default_config等于TOMOYO_CONFIG_DISABLED按位或TOMOYO_CONFIG_WANT_GRANT_LOG按位或TOMOYO_CONFIG_WANT_REJECT_LOG |
510 | memset(config, TOMOYO_CONFIG_USE_DEFAULT, config的长度) |
518 | entry = NULL |
521 | out : |
522 | 释放内存 |
523 | 返回:ptr |
名称 | 描述 |
---|---|
tomoyo_write_profile | moyo_write_profile - Write profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |