hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/security/integrity/ima/ima_template_lib.h
....@@ -1,13 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 Politecnico di Torino, Italy
3
- * TORSEC group -- http://security.polito.it
4
+ * TORSEC group -- https://security.polito.it
45 *
56 * Author: Roberto Sassu <roberto.sassu@polito.it>
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License as
9
- * published by the Free Software Foundation, version 2 of the
10
- * License.
117 *
128 * File: ima_template_lib.h
139 * Header for the library of supported template fields.
....@@ -29,6 +25,8 @@
2925 struct ima_field_data *field_data);
3026 void ima_show_template_sig(struct seq_file *m, enum ima_show_type show,
3127 struct ima_field_data *field_data);
28
+void ima_show_template_buf(struct seq_file *m, enum ima_show_type show,
29
+ struct ima_field_data *field_data);
3230 int ima_parse_buf(void *bufstartp, void *bufendp, void **bufcurp,
3331 int maxfields, struct ima_field_data *fields, int *curfields,
3432 unsigned long *len_mask, int enforce_mask, char *bufname);
....@@ -38,8 +36,14 @@
3836 struct ima_field_data *field_data);
3937 int ima_eventdigest_ng_init(struct ima_event_data *event_data,
4038 struct ima_field_data *field_data);
39
+int ima_eventdigest_modsig_init(struct ima_event_data *event_data,
40
+ struct ima_field_data *field_data);
4141 int ima_eventname_ng_init(struct ima_event_data *event_data,
4242 struct ima_field_data *field_data);
4343 int ima_eventsig_init(struct ima_event_data *event_data,
4444 struct ima_field_data *field_data);
45
+int ima_eventbuf_init(struct ima_event_data *event_data,
46
+ struct ima_field_data *field_data);
47
+int ima_eventmodsig_init(struct ima_event_data *event_data,
48
+ struct ima_field_data *field_data);
4549 #endif /* __LINUX_IMA_TEMPLATE_LIB_H */