函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static void destroy_ns(struct aa_ns *ns)

返回类型:void

参数:

类型参数名称
struct aa_ns *ns
332  如果非ns则返回
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  如果parent
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.
调用者
名称描述
__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