Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
unsigned int | field | |
unsigned int | op | |
char * | rulestr | |
void ** | 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) |
4364 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |