Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\resource.c Create Date:2022-07-28 19:53:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:profile_setrlimit

Proto:static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, struct rlimit *new_rlim)

Type:int

Parameter:

TypeParameterName
struct aa_profile *profile
unsigned intresource
struct rlimit *new_rlim
84  e = 0
86  If mask & 1 << resource && rlim_max > rlim_max Then e = -EACCES
89  Return 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
Caller
NameDescribe
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)