Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:label_destroy

Proto:static void label_destroy(struct aa_label *label)

Type:void

Parameter:

TypeParameterName
struct aa_label *label
316  AA_BUG(!label)
318  If Not label_isprofile(label) Then
322  aa_put_str(hname)
325  aa_put_profile - decrement refcount on profile @p*@p: profile (MAYBE NULL)
326  vec[i] = LABEL_POISON + i
331  If cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(label, true) == label Then cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(label, NULL)
334  aa_free_secid - free a secid*@secid: secid to free
336  tmp = cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(label, true)
337  If tmp == label Then cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(label, NULL)
340  aa_put_proxy(proxy)
341  proxy = he aa_label represents the set of profiles confining an object* Labels maintain a reference count to the set of pointers they reference* Labels are ref counted by* tasks and object via the security field/security context off the field* code - will take a + 1
Caller
NameDescribe
aa_label_free