Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:24:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int smack_audit_rule_init(unsigned int field, unsigned int op, char *rulestr, void **vrule)

Type:int

Parameter:

TypeParameterName
unsigned intfield
unsigned intop
char *rulestr
void **vrule
4349  rule = vrule
4350  * rule = NULL
4352  If field != security label user && field != AUDIT_OBJ_USER Then Return -EINVAL
4355  If op != Audit_equal && op != Audit_not_equal Then Return -EINVAL
4358  skp = smk_import_entry(rulestr, 0)
4359  If IS_ERR(skp) Then Return PTR_ERR(skp)
4362  rule = smk_known
4364  Return 0