函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_label_replace - replace a label @old with a new version @new*@old: label to replace*@new: label replacing @old* Returns: true if @old was in tree and replaced* else @old was not in tree, and @new was not inserted

函数原型:bool aa_label_replace(struct aa_label *old, struct aa_label *new)

返回类型:bool

参数:

类型参数名称
struct aa_label *old
struct aa_label *new
770  如果name_is_shared(old, new)且labels_ns(old)恒等于labels_ns(new)则
771  write_lock_irqsave( & lock, flags)
772  如果proxy不等于proxy__proxy_share(old, new)
774  否则quires profile list write lock held
776  res等于__label_replace - replace @old with @new in label set*@old: label to remove from label set*@new: label to replace @old with* Requires: labels_set(@old)->lock write_lock* valid ref count be held on @new* Returns: true if @old was in set and replaced by
777  write_unlock_irqrestore( & lock, flags)
778  否则
780  ls等于labels_set(old)
782  write_lock_irqsave( & lock, flags)
783  res等于__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
784  如果labels_ns(old)不等于labels_ns(new)则
786  ls等于labels_set(new)
789  l等于__label_insert - attempt to insert @l into a label set*@ls: set of labels to insert @l into (NOT NULL)*@label: new label to insert (NOT NULL)*@replace: whether insertion should replace existing entry that is not stale* Requires: @ls->lock* caller to hold
790  res等于l恒等于new
791  write_unlock_irqrestore( & lock, flags)
792  aa_put_label(l)
795  返回:res
调用者
名称描述
__replace_profile__replace_profile - replace @old with @new on a list*@old: profile to be replaced (NOT NULL)*@new: profile to replace @old with (NOT NULL)*@share_proxy: transfer @old->proxy to @new* Will duplicate and refcount elements that @new inherits from @old