Lines Matching refs:entry
24 * Calculate the hash of a template entry, add the template entry
37 int ima_store_template(struct ima_template_entry *entry,
44 memset(entry->digest, 0, sizeof(entry->digest));
45 entry->template_name = IMA_TEMPLATE_NAME;
46 entry->template_len = sizeof(entry->template);
49 result = ima_calc_template_hash(entry->template_len,
50 &entry->template,
51 entry->digest);
54 entry->template_name, op,
59 result = ima_add_template_entry(entry, violation, op, inode);
73 struct ima_template_entry *entry;
80 entry = kmalloc(sizeof(*entry), GFP_KERNEL);
81 if (!entry) {
85 memset(&entry->template, 0, sizeof(entry->template));
86 strncpy(entry->template.file_name, filename, IMA_EVENT_NAME_LEN_MAX);
87 result = ima_store_template(entry, violation, inode);
89 kfree(entry);
173 struct ima_template_entry *entry;
176 entry = kmalloc(sizeof(*entry), GFP_KERNEL);
177 if (!entry) {
182 memset(&entry->template, 0, sizeof(entry->template));
183 memcpy(entry->template.digest, iint->digest, IMA_DIGEST_SIZE);
184 strncpy(entry->template.file_name, filename, IMA_EVENT_NAME_LEN_MAX);
186 result = ima_store_template(entry, violation, inode);
190 kfree(entry);