函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\label.c Create Date:2022-07-27 21:44:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:label_free_or_put_new

函数原型:static void label_free_or_put_new(struct aa_label *label, struct aa_label *new)

返回类型:void

参数:

类型参数名称
struct aa_label *label
struct aa_label *new
394  如果label不等于newaa_label_free(new)
397  否则aa_put_label(new)
调用者
名称描述
vec_create_and_insert_labelquires sort and merge done first
aa_label_mergeaa_label_merge - attempt to insert new merged label of @a and @b*@ls: set of labels to insert label into (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)*@gfp: memory allocation type* Requires: caller to hold valid
__label_update__label_update - insert updated version of @label into labelset*@label - the label to update/replace* Returns: new label that is up to date* else NULL on failure* Requires: @ns lock be held* Note: worst case is the stale @label does not get updated and has