函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:yama_ptrace_access_check - validate PTRACE_ATTACH calls*@child: task that current task is attempting to ptrace*@mode: ptrace attach mode* Returns 0 if following the ptrace is allowed, -ve on error.

函数原型:static int yama_ptrace_access_check(struct task_struct *child, unsigned int mode)

返回类型:int

参数:

类型参数名称
struct task_struct *child
unsigned intmode
357  rc等于0
360  如果mode按位与PTRACE_MODE_ATTACH
364  退出
374  退出
380  退出
381  :ptrace_scope恒等于YAMA_SCOPE_NO_ATTACH
382  默认
383  rc等于负EPERM
384  退出
388  如果rcmode按位与PTRACE_MODE_NOAUDIT的值恒等于0则defers execution because cmdline access can sleep
391  返回:rc