1
2
3
4
5
6
7
8
9
10
11
12
13
14
15#ifndef __LINUX_IMA_TEMPLATE_LIB_H
16#define __LINUX_IMA_TEMPLATE_LIB_H
17
18#include <linux/seq_file.h>
19#include "ima.h"
20
21#define ENFORCE_FIELDS 0x00000001
22#define ENFORCE_BUFEND 0x00000002
23
24void ima_show_template_digest(struct seq_file *m, enum ima_show_type show,
25 struct ima_field_data *field_data);
26void ima_show_template_digest_ng(struct seq_file *m, enum ima_show_type show,
27 struct ima_field_data *field_data);
28void ima_show_template_string(struct seq_file *m, enum ima_show_type show,
29 struct ima_field_data *field_data);
30void ima_show_template_sig(struct seq_file *m, enum ima_show_type show,
31 struct ima_field_data *field_data);
32int ima_parse_buf(void *bufstartp, void *bufendp, void **bufcurp,
33 int maxfields, struct ima_field_data *fields, int *curfields,
34 unsigned long *len_mask, int enforce_mask, char *bufname);
35int ima_eventdigest_init(struct ima_event_data *event_data,
36 struct ima_field_data *field_data);
37int ima_eventname_init(struct ima_event_data *event_data,
38 struct ima_field_data *field_data);
39int ima_eventdigest_ng_init(struct ima_event_data *event_data,
40 struct ima_field_data *field_data);
41int ima_eventname_ng_init(struct ima_event_data *event_data,
42 struct ima_field_data *field_data);
43int ima_eventsig_init(struct ima_event_data *event_data,
44 struct ima_field_data *field_data);
45#endif
46