函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:profile_setrlimit

函数原型:static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, struct rlimit *new_rlim)

返回类型:int

参数:

类型参数名称
struct aa_profile *profile
unsigned intresource
struct rlimit *new_rlim
84  e等于0
86  如果mask按位与1左移resource位且rlim_max大于rlim_maxe等于负EACCES
89  返回:audit_resource - audit setting resource limit*@profile: profile being enforced (NOT NULL)*@resource: rlimit being auditing*@value: value being set*@error: error value* Returns: 0 or sa->error else other error code on failure
调用者
名称描述
aa_task_setrlimitaa_task_setrlimit - test permission to set an rlimit*@label - label confining the task (NOT NULL)*@task - task the resource is being set on*@resource - the resource being set*@new_rlim - the new resource limit (NOT NULL)