函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:void __aafs_profile_rmdir(struct aa_profile *profile)

返回类型:void

参数:

类型参数名称
struct aa_profile *profile
1539  如果非profile则返回
1542  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)
1543  Requires: @profile->ns->lock held
1545 i大于等于0循环
1547  如果非dents[i]则继续下一循环
1550  proxy等于i_private
1551  aafs_remove - removes a file or directory from the apparmorfs filesystem*@dentry: dentry of the file/directory/symlink to removed.
1552  aa_put_proxy(proxy)
1553  dents[i] = NULL
调用者
名称描述
__aafs_profile_rmdirRequires: @profile->ns->lock held
__aafs_profile_mkdirRequires: @profile->ns->lock held
__aafs_ns_rmdirRequires: @ns->lock held
__remove_profile__remove_profile - remove old profile, and children*@profile: profile to be replaced (NOT NULL)* Requires: namespace list lock be held, or list not be shared