Lines Matching refs:entry

58 static void ima_free_key_entry(struct ima_key_entry *entry)  in ima_free_key_entry()  argument
60 if (entry) { in ima_free_key_entry()
61 kfree(entry->payload); in ima_free_key_entry()
62 kfree(entry->keyring_name); in ima_free_key_entry()
63 kfree(entry); in ima_free_key_entry()
73 struct ima_key_entry *entry; in ima_alloc_key_entry() local
75 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in ima_alloc_key_entry()
76 if (entry) { in ima_alloc_key_entry()
77 entry->payload = kmemdup(payload, payload_len, GFP_KERNEL); in ima_alloc_key_entry()
78 entry->keyring_name = kstrdup(keyring->description, in ima_alloc_key_entry()
80 entry->payload_len = payload_len; in ima_alloc_key_entry()
83 if ((entry == NULL) || (entry->payload == NULL) || in ima_alloc_key_entry()
84 (entry->keyring_name == NULL)) { in ima_alloc_key_entry()
89 INIT_LIST_HEAD(&entry->list); in ima_alloc_key_entry()
97 ima_free_key_entry(entry); in ima_alloc_key_entry()
98 entry = NULL; in ima_alloc_key_entry()
101 return entry; in ima_alloc_key_entry()
108 struct ima_key_entry *entry; in ima_queue_key() local
110 entry = ima_alloc_key_entry(keyring, payload, payload_len); in ima_queue_key()
111 if (!entry) in ima_queue_key()
116 list_add_tail(&entry->list, &ima_keys); in ima_queue_key()
122 ima_free_key_entry(entry); in ima_queue_key()
135 struct ima_key_entry *entry, *tmp; in ima_process_queued_keys() local
160 list_for_each_entry_safe(entry, tmp, &ima_keys, list) { in ima_process_queued_keys()
163 entry->payload, in ima_process_queued_keys()
164 entry->payload_len, in ima_process_queued_keys()
165 entry->keyring_name, in ima_process_queued_keys()
167 entry->keyring_name, in ima_process_queued_keys()
169 list_del(&entry->list); in ima_process_queued_keys()
170 ima_free_key_entry(entry); in ima_process_queued_keys()