Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-04 Thread Greg Joyce
On Mon, 2022-08-01 at 22:24 +0200, Michal Suchánek wrote: > > > > + > > > > +int __weak arch_read_variable(enum arch_variable_type type, > > > > char *varname, > > > > + void *varbuf, u_int *varlen) > > > > +{ > > > > + return -EOPNOTSUPP; > > > > +} > > > > + > >

Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-02 Thread Greg Joyce
Michael and Michal, On Tue, 2022-08-02 at 12:59 +1000, Michael Ellerman wrote: > I don't think "arch" is the right level of abstraction here. > > There isn't a standard way to get these variables across a given > arch, > they're not defined in the architecture specification etc. > > As

Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-01 Thread Michael Ellerman
Hi Greg, gjo...@linux.vnet.ibm.com writes: > From: Greg Joyce > > Generic kernel subsystems may rely on platform specific persistent > KeyStore to store objects containing sensitive key material. In such case, > they need to access architecture specific functions to perform read/write >

Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-01 Thread Michal Suchánek
On Mon, Aug 01, 2022 at 03:45:45PM -0400, Nayna wrote: > > On 8/1/22 09:40, Michal Suchánek wrote: > > Hello, > > > > On Mon, Aug 01, 2022 at 07:34:25AM -0500, gjo...@linux.vnet.ibm.com wrote: > > > From: Greg Joyce > > > > > > Generic kernel subsystems may rely on platform specific persistent

Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-01 Thread Nayna
On 8/1/22 09:40, Michal Suchánek wrote: Hello, On Mon, Aug 01, 2022 at 07:34:25AM -0500, gjo...@linux.vnet.ibm.com wrote: From: Greg Joyce Generic kernel subsystems may rely on platform specific persistent KeyStore to store objects containing sensitive key material. In such case, they need

Re: [PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-01 Thread Michal Suchánek
Hello, On Mon, Aug 01, 2022 at 07:34:25AM -0500, gjo...@linux.vnet.ibm.com wrote: > From: Greg Joyce > > Generic kernel subsystems may rely on platform specific persistent > KeyStore to store objects containing sensitive key material. In such case, > they need to access architecture specific

[PATCH v3 1/2] lib: generic accessor functions for arch keystore

2022-08-01 Thread gjoyce
From: Greg Joyce Generic kernel subsystems may rely on platform specific persistent KeyStore to store objects containing sensitive key material. In such case, they need to access architecture specific functions to perform read/write operations on these variables. Define the generic variable