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