函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void __aafs_ns_rmdir(struct aa_ns *ns)

返回类型:void

参数:

类型参数名称
struct aa_ns *ns
1924  如果非ns则返回
1926  AA_BUG(!是互斥锁)
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  如果ns_subns_dir(ns)则
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  如果ns_subload(ns)则
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  如果ns_subreplace(ns)则
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  如果ns_subremove(ns)则
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  如果ns_subrevision(ns)则
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 i大于等于0循环
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
调用者
名称描述
__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)