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

2024-11-29 Thread Roberto Sassu
On Thu, 2024-11-28 at 12:40 -0800, Luis Chamberlain wrote: > On Thu, Nov 28, 2024 at 09:23:57AM +0100, Roberto Sassu wrote: > > On Wed, 2024-11-27 at 11:53 -0800, Luis Chamberlain wrote: > > > On Wed, Nov 27, 2024 at 10:51:11AM +0100, Roberto Sassu wrote: > > > > For eBPF programs we are also in a

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

2024-11-28 Thread Luis Chamberlain
On Thu, Nov 28, 2024 at 09:23:57AM +0100, Roberto Sassu wrote: > On Wed, 2024-11-27 at 11:53 -0800, Luis Chamberlain wrote: > > On Wed, Nov 27, 2024 at 10:51:11AM +0100, Roberto Sassu wrote: > > > For eBPF programs we are also in a need for a better way to > > > measure/appraise them. > > > > I am

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

2024-11-28 Thread Roberto Sassu
On Wed, 2024-11-27 at 11:53 -0800, Luis Chamberlain wrote: > On Wed, Nov 27, 2024 at 10:51:11AM +0100, Roberto Sassu wrote: > > For eBPF programs we are also in a need for a better way to > > measure/appraise them. > > I am confused now, I was under the impression this "Integrity Digest > Cache" i

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

2024-11-27 Thread Luis Chamberlain
On Wed, Nov 27, 2024 at 10:51:11AM +0100, Roberto Sassu wrote: > For eBPF programs we are also in a need for a better way to > measure/appraise them. I am confused now, I was under the impression this "Integrity Digest Cache" is just a special thing for LSMs, and so I was under the impression that

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

2024-11-27 Thread Roberto Sassu
On Tue, 2024-11-26 at 11:04 -0800, Luis Chamberlain wrote: > On Tue, Nov 26, 2024 at 11:25:07AM +0100, Roberto Sassu wrote: > > On Mon, 2024-11-25 at 15:53 -0800, Luis Chamberlain wrote: > > > > Firmware, eBPF programs and so on are supposed > > Keyword: "supposed". It depends if they are in a

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

2024-11-26 Thread Luis Chamberlain
On Tue, Nov 26, 2024 at 11:25:07AM +0100, Roberto Sassu wrote: > On Mon, 2024-11-25 at 15:53 -0800, Luis Chamberlain wrote: > > Firmware, eBPF programs and so on are supposed Keyword: "supposed". > As far as the LSM infrastructure is concerned, I'm not adding new LSM > hooks, nor extending/modi

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

2024-11-26 Thread Roberto Sassu
On Mon, 2024-11-25 at 15:53 -0800, Luis Chamberlain wrote: > On Tue, Nov 19, 2024 at 11:49:14AM +0100, Roberto Sassu wrote: > > From: Roberto Sassu > > Introduce load_parser() to load a kernel module containing a > > parser for the requested digest list format (compressed kernel modules are > > su

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

2024-11-25 Thread Luis Chamberlain
On Tue, Nov 19, 2024 at 11:49:14AM +0100, Roberto Sassu wrote: > From: Roberto Sassu > Introduce load_parser() to load a kernel module containing a > parser for the requested digest list format (compressed kernel modules are > supported). Kernel modules are searched in the > /lib/modules//security

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

2024-11-19 Thread Roberto Sassu
On Tue, 2024-11-19 at 08:46 -0800, Randy Dunlap wrote: > Hi-- > > On 11/19/24 2:49 AM, Roberto Sassu wrote: > > +/** > > + * struct parser - Structure to store a function pointer to parse digest > > list > > + * @list: Linked list > > + * @owner: Kernel module owning the parser > > + * @name: Par

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

2024-11-19 Thread Randy Dunlap
Hi-- On 11/19/24 2:49 AM, Roberto Sassu wrote: > +/** > + * 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: F

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

2024-11-19 Thread Roberto Sassu
From: Roberto Sassu Allow kernel modules to register/deregister new digest list parsers, respectively through digest_cache_register_parser() and digest_cache_unregister_parser(). Those functions pass the new parser structure holding the linked list pointers and a parsing function with the new ty