Path: blob/master/security/integrity/ima/ima_template_lib.h
26442 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (C) 2013 Politecnico di Torino, Italy3* TORSEC group -- https://security.polito.it4*5* Author: Roberto Sassu <[email protected]>6*7* File: ima_template_lib.h8* Header for the library of supported template fields.9*/10#ifndef __LINUX_IMA_TEMPLATE_LIB_H11#define __LINUX_IMA_TEMPLATE_LIB_H1213#include <linux/seq_file.h>14#include "ima.h"1516#define ENFORCE_FIELDS 0x0000000117#define ENFORCE_BUFEND 0x000000021819void ima_show_template_digest(struct seq_file *m, enum ima_show_type show,20struct ima_field_data *field_data);21void ima_show_template_digest_ng(struct seq_file *m, enum ima_show_type show,22struct ima_field_data *field_data);23void ima_show_template_digest_ngv2(struct seq_file *m, enum ima_show_type show,24struct ima_field_data *field_data);25void ima_show_template_string(struct seq_file *m, enum ima_show_type show,26struct ima_field_data *field_data);27void ima_show_template_sig(struct seq_file *m, enum ima_show_type show,28struct ima_field_data *field_data);29void ima_show_template_buf(struct seq_file *m, enum ima_show_type show,30struct ima_field_data *field_data);31void ima_show_template_uint(struct seq_file *m, enum ima_show_type show,32struct ima_field_data *field_data);33int ima_parse_buf(void *bufstartp, void *bufendp, void **bufcurp,34int maxfields, struct ima_field_data *fields, int *curfields,35unsigned long *len_mask, int enforce_mask, char *bufname);36int ima_eventdigest_init(struct ima_event_data *event_data,37struct ima_field_data *field_data);38int ima_eventname_init(struct ima_event_data *event_data,39struct ima_field_data *field_data);40int ima_eventdigest_ng_init(struct ima_event_data *event_data,41struct ima_field_data *field_data);42int ima_eventdigest_ngv2_init(struct ima_event_data *event_data,43struct ima_field_data *field_data);44int ima_eventdigest_modsig_init(struct ima_event_data *event_data,45struct ima_field_data *field_data);46int ima_eventname_ng_init(struct ima_event_data *event_data,47struct ima_field_data *field_data);48int ima_eventsig_init(struct ima_event_data *event_data,49struct ima_field_data *field_data);50int ima_eventbuf_init(struct ima_event_data *event_data,51struct ima_field_data *field_data);52int ima_eventmodsig_init(struct ima_event_data *event_data,53struct ima_field_data *field_data);54int ima_eventevmsig_init(struct ima_event_data *event_data,55struct ima_field_data *field_data);56int ima_eventinodeuid_init(struct ima_event_data *event_data,57struct ima_field_data *field_data);58int ima_eventinodegid_init(struct ima_event_data *event_data,59struct ima_field_data *field_data);60int ima_eventinodemode_init(struct ima_event_data *event_data,61struct ima_field_data *field_data);62int ima_eventinodexattrnames_init(struct ima_event_data *event_data,63struct ima_field_data *field_data);64int ima_eventinodexattrlengths_init(struct ima_event_data *event_data,65struct ima_field_data *field_data);66int ima_eventinodexattrvalues_init(struct ima_event_data *event_data,67struct ima_field_data *field_data);68#endif /* __LINUX_IMA_TEMPLATE_LIB_H */697071