Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:assumes cleanup in caller

Proto:static int __aafs_ns_mkdir_entries(struct aa_ns *ns, struct dentry *dir)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  If IS_ERR(dent) Then Return PTR_ERR(dent)
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  Return 0
Caller
NameDescribe
__aafs_ns_mkdirRequires: @ns->lock held