函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_update_label_name - update a label to have a stored name*@ns: ns being viewed from (NOT NULL)*@label: label to update (NOT NULL)*@gfp: type of memory allocation* Requires: labels_set(label) not locked in caller* note: only updates the label name if it

函数原型:bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp)

返回类型:bool

参数:

类型参数名称
struct aa_ns *ns
struct aa_label *label
gfp_tgfp
1420  atm just a notation name
1421  bool res = false
1423  AA_BUG(!ns)
1424  AA_BUG(!label)
1426  如果hnamelabels_ns(label)不等于ns则返回:res
1429  如果aa_label_acntsxprint - allocate a __counted string buffer and print label*@strp: buffer to write to恒等于负1则返回:res
1432  ls等于labels_set(label)
1433  write_lock_irqsave( & lock, flags)
1434  如果非hnameflags按位与 label is in tree
1435  hname等于name
1436  res = true
1437  否则aa_put_str(name)
1439  write_unlock_irqrestore( & lock, flags)
1441  返回:res