函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:assumes cleanup in caller

函数原型:static int __aafs_ns_mkdir_entries(struct aa_ns *ns, struct dentry *dir)

返回类型:int

参数:

类型参数名称
struct aa_ns *ns
struct dentry *dir
1971  AA_BUG(!ns)
1972  AA_BUG(!dir)
1974  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
1975  如果是错误则返回:错误
1977  ns_subprofs_dir(ns)等于dent
1979  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
1980  如果是错误则返回:错误
1982  ns_subdata_dir(ns)等于dent
1984  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1986  如果是错误则返回:错误
1988  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
1989  ns_subrevision(ns)等于dent
1991  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
1993  如果是错误则返回:错误
1995  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
1996  ns_subload(ns)等于dent
1998  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
2000  如果是错误则返回:错误
2002  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
2003  ns_subreplace(ns)等于dent
2005  dent等于aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
2007  如果是错误则返回:错误
2009  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
2010  ns_subremove(ns)等于dent
2013  dent等于aafs_create - create a dentry in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
2015  如果是错误则返回:错误
2017  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
2018  ns_subns_dir(ns)等于dent
2020  返回:0
调用者
名称描述
__aafs_ns_mkdirRequires: @ns->lock held