函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Requires: @ns->lock held

函数原型:int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, struct dentry *dent)

返回类型:int

参数:

类型参数名称
struct aa_ns *ns
struct dentry *parent
const char *name
struct dentry *dent
2034  AA_BUG(!ns)
2035  AA_BUG(!parent)
2036  AA_BUG(!是互斥锁)
2038  如果非namename等于name
2041  如果非dent
2043  dent等于aafs_create_dir - create a directory in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry* see aafs_create
2044  如果是错误则转到:fail
2046  否则获得目录项引用
2048  ns_dir(ns)等于dir等于dent
2049  error等于assumes cleanup in caller
2050  如果error则转到:fail2
2055  error等于Requires: @profile->ns->lock held
2056  如果error则转到:fail2
2062  mutex_lock_nested( & lock, level)
2063  error等于Requires: @ns->lock held
2064  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.
2065  如果error则转到:fail2
2069  返回:0
2071  fail :
2072  error等于错误
2074  fail2 :
2075  Requires: @ns->lock held
2077  返回:error
调用者
名称描述
__aafs_ns_mkdirRequires: @ns->lock held
aa_create_aafsaa_create_aafs - create the apparmor security filesystem* dentries created here are released by aa_destroy_aafs* Returns: error on failure
__aa_create_ns