~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/security/integrity/ima/ima_template_lib.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php