ima_fs.c (140d802240a4ba3351494b4ab199964b96f87493) ima_fs.c (3ce1217d6cd5dfa82a9db5c2a999cc1bb01490d9)
1/*
2 * Copyright (C) 2005,2006,2007,2008 IBM Corporation
3 *
4 * Authors:
5 * Kylene Hall <kjhall@us.ibm.com>
6 * Reiner Sailer <sailer@us.ibm.com>
7 * Mimi Zohar <zohar@us.ibm.com>
8 *

--- 85 unchanged lines hidden (view full) ---

94
95 return (&qe->later == &ima_measurements) ? NULL : qe;
96}
97
98static void ima_measurements_stop(struct seq_file *m, void *v)
99{
100}
101
1/*
2 * Copyright (C) 2005,2006,2007,2008 IBM Corporation
3 *
4 * Authors:
5 * Kylene Hall <kjhall@us.ibm.com>
6 * Reiner Sailer <sailer@us.ibm.com>
7 * Mimi Zohar <zohar@us.ibm.com>
8 *

--- 85 unchanged lines hidden (view full) ---

94
95 return (&qe->later == &ima_measurements) ? NULL : qe;
96}
97
98static void ima_measurements_stop(struct seq_file *m, void *v)
99{
100}
101
102static void ima_putc(struct seq_file *m, void *data, int datalen)
102void ima_putc(struct seq_file *m, void *data, int datalen)
103{
104 while (datalen--)
105 seq_putc(m, *(char *)data++);
106}
107
108/* print format:
109 * 32bit-le=pcr#
110 * char[20]=template digest

--- 51 unchanged lines hidden (view full) ---

162
163static const struct file_operations ima_measurements_ops = {
164 .open = ima_measurements_open,
165 .read = seq_read,
166 .llseek = seq_lseek,
167 .release = seq_release,
168};
169
103{
104 while (datalen--)
105 seq_putc(m, *(char *)data++);
106}
107
108/* print format:
109 * 32bit-le=pcr#
110 * char[20]=template digest

--- 51 unchanged lines hidden (view full) ---

162
163static const struct file_operations ima_measurements_ops = {
164 .open = ima_measurements_open,
165 .read = seq_read,
166 .llseek = seq_lseek,
167 .release = seq_release,
168};
169
170static void ima_print_digest(struct seq_file *m, u8 *digest, int size)
170void ima_print_digest(struct seq_file *m, u8 *digest, int size)
171{
172 int i;
173
174 for (i = 0; i < size; i++)
175 seq_printf(m, "%02x", *(digest + i));
176}
177
178void ima_template_show(struct seq_file *m, void *e, enum ima_show_type show)

--- 198 unchanged lines hidden ---
171{
172 int i;
173
174 for (i = 0; i < size; i++)
175 seq_printf(m, "%02x", *(digest + i));
176}
177
178void ima_template_show(struct seq_file *m, void *e, enum ima_show_type show)

--- 198 unchanged lines hidden ---