Lines Matching refs:data
449 static struct audit_entry *audit_data_to_entry(struct audit_rule_data *data, in audit_data_to_entry() argument
460 entry = audit_to_entry_common(data); in audit_data_to_entry()
464 bufp = data->buf; in audit_data_to_entry()
465 for (i = 0; i < data->field_count; i++) { in audit_data_to_entry()
471 f->op = audit_to_op(data->fieldflags[i]); in audit_data_to_entry()
475 f->type = data->fields[i]; in audit_data_to_entry()
476 f_val = data->values[i]; in audit_data_to_entry()
636 struct audit_rule_data *data; in audit_krule_to_data() local
640 data = kmalloc(struct_size(data, buf, krule->buflen), GFP_KERNEL); in audit_krule_to_data()
641 if (unlikely(!data)) in audit_krule_to_data()
643 memset(data, 0, sizeof(*data)); in audit_krule_to_data()
645 data->flags = krule->flags | krule->listnr; in audit_krule_to_data()
646 data->action = krule->action; in audit_krule_to_data()
647 data->field_count = krule->field_count; in audit_krule_to_data()
648 bufp = data->buf; in audit_krule_to_data()
649 for (i = 0; i < data->field_count; i++) { in audit_krule_to_data()
652 data->fields[i] = f->type; in audit_krule_to_data()
653 data->fieldflags[i] = audit_ops[f->op]; in audit_krule_to_data()
665 data->buflen += data->values[i] = in audit_krule_to_data()
669 data->buflen += data->values[i] = in audit_krule_to_data()
674 data->buflen += data->values[i] = in audit_krule_to_data()
679 data->buflen += data->values[i] = in audit_krule_to_data()
683 data->buflen += data->values[i] = in audit_krule_to_data()
688 data->fields[i] = AUDIT_LOGINUID; in audit_krule_to_data()
689 data->values[i] = AUDIT_UID_UNSET; in audit_krule_to_data()
694 data->values[i] = f->val; in audit_krule_to_data()
697 for (i = 0; i < AUDIT_BITMASK_SIZE; i++) data->mask[i] = krule->mask[i]; in audit_krule_to_data()
699 return data; in audit_krule_to_data()
1088 struct audit_rule_data *data; in audit_list_rules() local
1090 data = audit_krule_to_data(r); in audit_list_rules()
1091 if (unlikely(!data)) in audit_list_rules()
1094 data, in audit_list_rules()
1095 struct_size(data, buf, data->buflen)); in audit_list_rules()
1098 kfree(data); in audit_list_rules()
1132 int audit_rule_change(int type, int seq, void *data, size_t datasz) in audit_rule_change() argument
1139 entry = audit_data_to_entry(data, datasz); in audit_rule_change()
1146 entry = audit_data_to_entry(data, datasz); in audit_rule_change()