Thread (54 messages) 54 messages, 7 authors, 2025-01-21

Re: [PATCH v6 07/15] digest_cache: Allow registration of digest list parsers

From: Roberto Sassu <hidden>
Date: 2024-11-19 16:49:08
Also in: linux-doc, linux-integrity, linux-kselftest, linux-modules, linux-security-module, lkml

On Tue, 2024-11-19 at 08:46 -0800, Randy Dunlap wrote:
Hi--

On 11/19/24 2:49 AM, Roberto Sassu wrote:
quoted
+/**
+ * struct parser - Structure to store a function pointer to parse digest list
+ * @list: Linked list
+ * @owner: Kernel module owning the parser
+ * @name: Parser name (must match the format in the digest list file name)
+ * @func: Function pointer for parsing
+ *
+ * This structure stores a function pointer to parse a digest list.
+ */
+struct parser {
+	struct list_head list;
+	struct module *owner;
+	const char name[NAME_MAX + 1];
+	parser_func func;
+};
I would make the struct name not so generic -- maybe digest_parser ...
Hi

sure, thanks for the suggestion!

Roberto
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help