函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_audit_rule_init - Initialize a smack audit rule*@field: audit rule fields given from user-space (audit.h)*@op: required testing operator (=, !=, >, <, ...)*@rulestr: smack label to be audited*@vrule: pointer to save our own audit rule representation

函数原型:static int smack_audit_rule_init(unsigned int field, unsigned int op, char *rulestr, void **vrule)

返回类型:int

参数:

类型参数名称
unsigned intfield
unsigned intop
char *rulestr
void **vrule
4349  rule等于vrule
4350  * rule = NULL
4352  如果field不等于security label user field不等于AUDIT_OBJ_USER则返回:负EINVAL
4355  如果op不等于Audit_equalop不等于Audit_not_equal则返回:负EINVAL
4358  skp等于smk_import_entry(rulestr, 0)
4359  如果是错误则返回:错误
4362  rule等于smk_known
4364  返回:0