函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_labelset_destroy - remove all labels from the label set*@ls: label set to cleanup (NOT NULL)* Labels that are removed from the set may still exist beyond the set* being destroyed depending on their reference counting

函数原型:void aa_labelset_destroy(struct aa_labelset *ls)

返回类型:void

参数:

类型参数名称
struct aa_labelset *ls
1957  AA_BUG(!ls)
1959  write_lock_irqsave( & lock, flags)
1960 node循环
1961  this等于rb_entry(node, structaa_label, node)
1963  如果labels_ns(this)不等于 profile namespace __label_remove - remove @label from the label set*@l: label to remove*@new: label to redirect to* Requires: labels_set(@label)->lock write_lock* Returns: true if the label was in the tree and removed
1966  否则__label_remove - remove @label from the label set*@l: label to remove*@new: label to redirect to* Requires: labels_set(@label)->lock write_lock* Returns: true if the label was in the tree and removed
1969  write_unlock_irqrestore( & lock, flags)