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()
716 if (a->fields[i].type != b->fields[i].type || in audit_compare_rule()
717 a->fields[i].op != b->fields[i].op) in audit_compare_rule()
720 switch(a->fields[i].type) { in audit_compare_rule()
731 if (strcmp(a->fields[i].lsm_str, b->fields[i].lsm_str)) in audit_compare_rule()
761 if (!uid_eq(a->fields[i].uid, b->fields[i].uid)) in audit_compare_rule()
769 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule()
773 if (a->fields[i].val != b->fields[i].val) in audit_compare_rule()
851 memcpy(new->fields, old->fields, sizeof(struct audit_field) * fcount); in audit_dupe_rule()
856 switch (new->fields[i].type) { in audit_dupe_rule()
867 err = audit_dupe_lsm_field(&new->fields[i], in audit_dupe_rule()
868 &old->fields[i]); in audit_dupe_rule()
1339 struct audit_field *f = &e->rule.fields[i]; in audit_filter()