函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ns_rmdir_op

函数原型:static int ns_rmdir_op(struct inode *dir, struct dentry *dentry)

返回类型:int

参数:

类型参数名称
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  如果error则返回: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  如果非ns
1881  error等于负ENOENT
1882  转到: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  返回:error