Lines Matching refs:fields

91 	if (erule->fields)  in audit_free_rule()
93 audit_free_lsm_field(&erule->fields[i]); in audit_free_rule()
94 kfree(erule->fields); in audit_free_rule()
109 struct audit_field *fields; in audit_init_entry() local
115 fields = kcalloc(field_count, sizeof(*fields), GFP_KERNEL); in audit_init_entry()
116 if (unlikely(!fields)) { in audit_init_entry()
120 entry->rule.fields = fields; in audit_init_entry()
466 struct audit_field *f = &entry->rule.fields[i]; in audit_data_to_entry()
475 f->type = data->fields[i]; in audit_data_to_entry()
650 struct audit_field *f = &krule->fields[i]; in audit_krule_to_data()
652 data->fields[i] = f->type; in audit_krule_to_data()
688 data->fields[i] = AUDIT_LOGINUID; in audit_krule_to_data()
717 if (a->fields[i].type != b->fields[i].type || in audit_compare_rule()
718 a->fields[i].op != b->fields[i].op) in audit_compare_rule()
721 switch (a->fields[i].type) { in audit_compare_rule()
732 if (strcmp(a->fields[i].lsm_str, b->fields[i].lsm_str)) in audit_compare_rule()
762 if (!uid_eq(a->fields[i].uid, b->fields[i].uid)) in audit_compare_rule()
770 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule()
774 if (a->fields[i].val != b->fields[i].val) in audit_compare_rule()
852 memcpy(new->fields, old->fields, sizeof(struct audit_field) * fcount); in audit_dupe_rule()
857 switch (new->fields[i].type) { in audit_dupe_rule()
868 err = audit_dupe_lsm_field(&new->fields[i], in audit_dupe_rule()
869 &old->fields[i]); in audit_dupe_rule()
1340 struct audit_field *f = &e->rule.fields[i]; in audit_filter()