Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\label.c Create Date:2022-07-28 19:54:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:bool aa_update_label_name(struct aa_ns *ns, struct aa_label *label, gfp_t gfp)

Type:bool

Parameter:

TypeParameterName
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  If hname || labels_ns(label) != ns Then Return res
1429  If aa_label_acntsxprint - allocate a __counted string buffer and print label*@strp: buffer to write to == -1 Then Return res
1432  ls = labels_set(label)
1433  write_lock_irqsave( & lock, flags)
1434  If Not hname && flags & label is in tree Then
1435  hname = name
1436  res = true
1437  Else aa_put_str(name)
1439  write_unlock_irqrestore( & lock, flags)
1441  Return res