Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_free_ns - free a profile namespace*@ns: the namespace to free (MAYBE NULL)* Requires: All references to the namespace must have been put, if the* namespace was referenced by a profile confining a task,

Proto:void aa_free_ns(struct aa_ns *ns)

Type:void

Parameter:

TypeParameterName
struct aa_ns *ns
139  If Not ns Then Return
142  aa_policy_destroy - free the elements referenced by @policy*@policy: policy that is to have its elements freed (NOT NULL)
143  aa_labelset_destroy( & labels)
144  aa_put_ns - decrement refcount on @ns*@ns: namespace to put reference of* Decrement reference count of @ns and if no longer in use free it
146  ns = NULL
147  aa_free_profile - free a profile*@profile: the profile to free (MAYBE NULL)* Free a profile, its hats and null_profile
148  kzfree - like kfree but zero memory*@p: object to free memory of* The memory of the object @p points to is zeroed before freed.* If @p is %NULL, kzfree() does nothing.* Note: this function zeroes the whole allocated buffer which can be a good
Caller
NameDescribe
__aa_create_ns
label_free_switch