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:aa_create_ns - create an ns, fail if it already exists*@parent: the parent of the namespace being created*@name: the name of the namespace*@dir: if not null the dir to put the ns entries in* Returns: the a refcounted ns that has been add or an ERR_PTR

Proto:struct aa_ns *__aa_find_or_create_ns(struct aa_ns *parent, const char *name, struct dentry *dir)

Type:struct aa_ns

Parameter:

TypeParameterName
struct aa_ns *parent
const char *name
struct dentry *dir
287  AA_BUG(!mutex_is_locked( & lock))
291  ns = aa_get_ns - increment references count on @ns*@ns: namespace to increment reference count of (MAYBE NULL)* Returns: pointer to @ns, if @ns is NULL returns NULL* Requires: @ns must be held with valid refcount when called
292  If Not ns Then ns = __aa_create_ns(parent, name, dir)
294  Else ns = ERR_PTR( - EEXIST)
298  Return ns
Caller
NameDescribe
ns_mkdir_op