Lines Matching full:rule
16 * selinux_audit_rule_init - alloc/init an selinux audit rule structure.
17 * @field: the field this rule refers to
18 * @op: the operater the rule uses
19 * @rulestr: the text "target" of the rule
20 * @rule: pointer to the new rule structure returned via this
22 * Returns 0 if successful, -errno if not. On success, the rule structure
26 int selinux_audit_rule_init(u32 field, u32 op, char *rulestr, void **rule);
29 * selinux_audit_rule_free - free an selinux audit rule structure.
30 * @rule: pointer to the audit rule to be freed
32 * This will free all memory associated with the given rule.
33 * If @rule is NULL, no operation is performed.
35 void selinux_audit_rule_free(void *rule);
38 * selinux_audit_rule_match - determine if a context ID matches a rule.
40 * @field: the field this rule refers to
41 * @op: the operater the rule uses
42 * @rule: pointer to the audit rule to check against
44 * Returns 1 if the context id matches the rule, 0 if it does not, and
47 int selinux_audit_rule_match(u32 sid, u32 field, u32 op, void *rule);
50 * selinux_audit_rule_known - check to see if rule contains selinux fields.
51 * @rule: rule to be checked
52 * Returns 1 if there are selinux fields specified in the rule, 0 otherwise.