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:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:destroy_ns - remove everything contained by @ns*@ns: namespace to have it contents removed (NOT NULL)

Proto:static void destroy_ns(struct aa_ns *ns)

Type:void

Parameter:

TypeParameterName
struct aa_ns *ns
332  If Not ns Then Return
335  mutex_lock_nested( & lock, level)
337  __aa_profile_list_release - remove all profiles on the list and put refs*@head: list of profiles (NOT NULL)* Requires: namespace lock be held
340  __ns_list_release( & sub_ns)
342  If parent Then
345  write_lock_irqsave( & lock, flags)
346  quires profile list write lock held
348  write_unlock_irqrestore( & lock, flags)
350  Requires: @ns->lock held
351  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
__aa_remove_ns__aa_remove_ns - remove a namespace and all its children*@ns: namespace to be removed (NOT NULL)* Requires: ns->parent->lock be held and ns removed from parent.
aa_free_root_nsaa_free_root_ns - free the root profile namespace