Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apparmor_task_setrlimit

Proto:static int apparmor_task_setrlimit(struct task_struct *task, unsigned int resource, struct rlimit *new_rlim)

Type:int

Parameter:

TypeParameterName
struct task_struct *task
unsigned intresource
struct rlimit *new_rlim
732  label = __begin_current_label_crit_section - current's confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* safe to call inside locks* The returned reference must be put with __end_current_label_crit_section()* This must NOT
733  error = 0
735  If Not unconfined(label) Then error = aa_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)
737  __end_current_label_crit_section(label)
739  Return error