函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vec_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@vec: vector of profiles to compare (NOT NULL)*@n: length of @vec* Returns: <0 if a < vec* ==0 if a == vec* >0 if a > vec

函数原型:static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn)

返回类型:int

参数:

类型参数名称
struct aa_profile **a
intan
struct aa_profile **b
intbn
169  AA_BUG(!a)
170  AA_BUG(! * a)
171  AA_BUG(!b)
172  AA_BUG(! * b)
173  AA_BUG(an <= 0)
174  AA_BUG(bn <= 0)
176 i小于ani小于bn循环
177  res等于profile_cmp - profile comparison for set ordering*@a: profile to compare (NOT NULL)*@b: profile to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b
179  如果res不等于0则返回:res
183  返回:anbn
调用者
名称描述
label_cmplabel_cmp - label comparison for set ordering*@a: label to compare (NOT NULL)*@b: label to compare (NOT NULL)* Returns: <0 if a < b* ==0 if a == b* >0 if a > b
__vec_find__vec_find - find label that matches @vec in label set*@vec: vec of profiles to find matching label for (NOT NULL)*@n: length of @vec* Requires: @vec_labelset(vec) lock held* caller to hold a valid ref on l* Returns: ref counted @label if matching label