Re: [RFC, PATCH 1/1] rpmb: add Replay Protected Memory Block (RPMB) driver

From: Linus Walleij
Date: Wed Aug 23 2023 - 04:15:21 EST


On Tue, Aug 22, 2023 at 9:07 PM Shyam Saini
<shyamsaini@xxxxxxxxxxxxxxxxxxx> wrote:

> do we plan to disable access to RPMB devices, once we have this RPMB
> driver in place. User space tools like mmc-utils/nvme/ufs utils
> can still access RPMB and programme the key and should
> RPMB driver deny access to RPMB ?

We don't break userspace. Just not. This is not an option.

The RPMB subsystem simply has to provide the rpmb character
device the same way the MMC subsystem did, or provide an
in-kernel backend to the MMC subsystem so that it can provide
the same device. Whatever solution is best.

No deprecation and deletion and breaking userspace. Ever.

Yours,
Linus Walleij