Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ns_rmdir_op

Proto:static int ns_rmdir_op(struct inode *dir, struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct inode *dir
struct dentry *dentry
1863  label = gin_current_label_crit_section - current's confining label and update it* Returns: up to date confining label or the ns unconfined label (NOT NULL)* Not safe to call inside locks* The returned reference must be put with end_current_label_crit_section()*
1864  error = aa_may_manage_policy(label, NULL, AA_MAY_LOAD_POLICY)
1865  d_label_crit_section - put a reference found with begin_current_label..*@label: label reference to put* Should only be used with a reference obtained with* begin_current_label_crit_section and never used in situations where the* task cred may be updated
1866  If error Then Return error
1869  parent = 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
1874  inode_unlock(dir)
1875  inode_unlock( Where the name belongs to - NULL is * negative )
1877  mutex_lock_nested( & lock, level)
1878  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
1880  If Not ns Then
1881  error = -ENOENT
1882  Go to out
1884  AA_BUG(ns_dir(ns) != dentry)
1886  __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.
1887  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
1889  out :
1890  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.
1891  inode_lock_nested(dir, I_MUTEX_PARENT)
1892  inode_lock( Where the name belongs to - NULL is * negative )
1893  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
1895  Return error