函数逻辑报告 |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-27 20:48:51 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:smk_ptrace_rule_check - helper for ptrace access*@tracer: tracer process*@tracee_known: label entry of the process that's about to be traced*@mode: ptrace attachment mode (PTRACE_MODE_*)*@func: name of the function that called us, used for audit* Returns
函数原型:static int smk_ptrace_rule_check(struct task_struct *tracer, struct smack_known *tracee_known, unsigned int mode, const char *func)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct task_struct * | tracer | |
struct smack_known * | tracee_known | |
unsigned int | mode | |
const char * | func |
423 | struct smk_audit_info ad, * saip = NULL |
428 | 如果mode按位与PTRACE_MODE_NOAUDIT的值恒等于0则 |
430 | smk_ad_setfield_u_tsk( & ad, tracer) |
436 | tsp等于smack_cred(tracercred) |
444 | 否则如果smack_ptrace_rule恒等于SMACK_PTRACE_DRACONIAN则rc等于负EACCES |
457 | 返回:rc |
464 | 返回:rc |
名称 | 描述 |
---|---|
smack_ptrace_access_check | smack_ptrace_access_check - Smack approval on PTRACE_ATTACH*@ctp: child task pointer*@mode: ptrace attachment mode (PTRACE_MODE_*)* Returns 0 if access is OK, an error code otherwise* Do the capability checks. |
smack_ptrace_traceme | smack_ptrace_traceme - Smack approval on PTRACE_TRACEME*@ptp: parent task pointer* Returns 0 if access is OK, an error code otherwise* Do the capability checks, and require PTRACE_MODE_ATTACH. |
smack_bprm_set_creds | smack_bprm_set_creds - set creds for exec*@bprm: the exec information* Returns 0 if it gets a blob, -EPERM if exec forbidden and -ENOMEM otherwise |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |