函数逻辑报告 |
Source Code:security\apparmor\policy.c |
Create Date:2022-07-27 21:33:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_new_null_profile - create or find a null-X learning profile*@parent: profile that caused this profile to be created (NOT NULL)*@hat: true if the null- learning profile is a hat*@base: name to base the null profile off of*@gfp: type of allocation
函数原型:struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, const char *base, gfp_t gfp)
返回类型:struct aa_profile
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_profile * | parent | |
bool | hat | |
const char * | base | |
gfp_t | gfp |
507 | char * name = NULL |
511 | 如果base则 |
522 | 如果非name则返回:NULL |
524 | 输出格式化串 |
527 | name : |
529 | bname等于asename - find the last component of an hname*@name: hname to find the base profile name component of (NOT NULL)* Returns: the tail (base profile name) name component of an hname |
530 | profile等于aa_find_child - find a profile by @name in @parent*@parent: profile to search (NOT NULL)*@name: profile name to search for (NOT NULL)* Returns: a refcounted profile or NULL if not found |
534 | profile等于aa_alloc_profile - allocate, initialize and return a new profile*@hname: name of the profile (NOT NULL)*@gfp: allocation type* Returns: refcount profile or NULL on failure |
540 | 如果hat则flags或等于 profile is a hat |
542 | path_flags等于path_flags |
547 | dfa等于aa_get_dfa - increment refcount on dfa @p*@dfa: dfa (MAYBE NULL)* Returns: pointer to @dfa if @dfa is NULL will return NULL* Requires: @dfa must be held with valid refcount when called |
550 | mutex_lock_nested( & lock, level) |
552 | 如果p则 |
555 | 否则 |
561 | out : |
562 | 释放内存 |
564 | 返回:profile |
566 | fail : |
567 | 释放内存 |
569 | 返回:NULL |
名称 | 描述 |
---|---|
build_change_hat | helper fn for change_hat* Returns: label for hat transition OR ERR_PTR. Does NOT return NULL |
aa_change_profile | aa_change_profile - perform a one-way profile transition*@fqname: name of profile may include namespace (NOT NULL)*@onexec: whether this transition is to take place immediately or at exec*@flags: flags affecting change behavior |
profile_transition |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |