Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:58:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_task_prlimit

Proto:static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred, unsigned int flags)

Type:int

Parameter:

TypeParameterName
const struct cred *cred
const struct cred *tcred
unsigned intflags
4100  av = 0
4102  If Not flags Then Return 0
4104  If flags & LSM_PRLIMIT_WRITE Then av |= PROCESS__SETRLIMIT
4106  If flags & Flags for security_task_prlimit(). Then av |= PROCESS__GETRLIMIT
4108  Return avc_has_perm - Check permissions and perform any appropriate auditing