函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__aa_transition_rlimits - apply new profile rlimits*@old_l: old label on task (NOT NULL)*@new_l: new label with rlimits to apply (NOT NULL)

函数原型:void __aa_transition_rlimits(struct aa_label *old_l, struct aa_label *new_l)

返回类型:void

参数:

类型参数名称
struct aa_label *old_l
struct aa_label *new_l
143  mask等于0
148  old等于labels_profile(old_l)
149  new等于labels_profile(new_l)
155  如果mask
158 j小于RLIM_NLIMITS循环
160  如果mask按位与mask
161  rlim等于rlimj
162  initrlim等于rlimj
174  如果非mask则继续下一循环
176 j小于RLIM_NLIMITS循环
177  如果非mask按位与mask的值则继续下一循环
180  rlim等于rlimj