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:Requires: @ns->lock held

Proto:void __aafs_ns_rmdir(struct aa_ns *ns)

Type:void

Parameter:

TypeParameterName
struct aa_ns *ns
1924  If Not ns Then Return
1926  AA_BUG(!mutex_is_locked( & lock))
1928  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(child, & profiles, list)
1929  Requires: @profile->ns->lock held
1932  mutex_lock_nested( & lock, level)
1933  Requires: @ns->lock held
1934  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.
1937  __aa_fs_list_remove_rawdata(ns)
1939  If ns_subns_dir(ns) Then
1940  sub = i_private
1941  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
1943  If ns_subload(ns) Then
1944  sub = i_private
1945  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
1947  If ns_subreplace(ns) Then
1948  sub = i_private
1949  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
1951  If ns_subremove(ns) Then
1952  sub = i_private
1953  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
1955  If ns_subrevision(ns) Then
1956  sub = i_private
1957  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
1960  When i >= 0 cycle
1961  aafs_remove - removes a file or directory from the apparmorfs filesystem*@dentry: dentry of the file/directory/symlink to removed.
1962  dents[i] = NULL
Caller
NameDescribe
__aafs_ns_rmdirRequires: @ns->lock held
__aafs_ns_mkdirRequires: @ns->lock held
destroy_nsdestroy_ns - remove everything contained by @ns*@ns: namespace to have it contents removed (NOT NULL)