函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_audit_rule_match - Audit given object ?*@secid: security id for identifying the object to test*@field: audit rule flags given from user-space*@op: required testing operator*@vrule: smack internal rule presentation* The core Audit hook

函数原型:static int smack_audit_rule_match(unsigned int secid, unsigned int field, unsigned int op, void *vrule)

返回类型:int

参数:

类型参数名称
unsigned intsecid
unsigned intfield
unsigned intop
void *vrule
4403  rule等于vrule
4405  如果此条件成立可能性小(为编译器优化)(!rule)则
4406  WARN_ONCE(1, "Smack: missing rule\n")
4407  返回:负ENOENT
4410  如果field不等于security label user field不等于AUDIT_OBJ_USER则返回:0
4413  skp等于smack_from_secid(secid)
4420  如果op恒等于Audit_equal则返回:rule恒等于smk_known
4422  如果op恒等于Audit_not_equal则返回:rule不等于smk_known
4425  返回:0