[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 2 Feb 2022 12:55:10 +0200
From: Dov Murik <dovmurik@...ux.ibm.com>
To: Gerd Hoffmann <kraxel@...hat.com>
Cc: linux-efi@...r.kernel.org, Borislav Petkov <bp@...e.de>,
Ashish Kalra <ashish.kalra@....com>,
Brijesh Singh <brijesh.singh@....com>,
Tom Lendacky <thomas.lendacky@....com>,
Ard Biesheuvel <ardb@...nel.org>,
James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>,
Andi Kleen <ak@...ux.intel.com>,
Greg KH <gregkh@...uxfoundation.org>,
Andrew Scull <ascull@...gle.com>,
Dave Hansen <dave.hansen@...el.com>,
"Dr. David Alan Gilbert" <dgilbert@...hat.com>,
Lenny Szubowicz <lszubowi@...hat.com>,
Peter Gonda <pgonda@...gle.com>,
James Bottomley <jejb@...ux.ibm.com>,
Tobin Feldman-Fitzthum <tobin@...ux.ibm.com>,
Jim Cadden <jcadden@....com>,
Daniele Buono <dbuono@...ux.vnet.ibm.com>,
linux-coco@...ts.linux.dev, linux-security-module@...r.kernel.org,
linux-kernel@...r.kernel.org, Dov Murik <dovmurik@...ux.ibm.com>
Subject: Re: [PATCH v7 3/5] virt: Add efi_secret module to expose confidential
computing secrets
On 02/02/2022 10:45, Gerd Hoffmann wrote:
> Hi,
>
>> + s->coco_dir = NULL;
>> + s->fs_dir = NULL;
>> + memset(s->fs_files, 0, sizeof(s->fs_files));
>> +
>> + dent = securityfs_create_dir("coco", NULL);
>> + if (IS_ERR(dent)) {
>> + pr_err("Error creating coco securityfs directory entry err=%ld\n", PTR_ERR(dent));
>> + return PTR_ERR(dent);
>> + }
>> + s->coco_dir = dent;
>> +
>> + dent = securityfs_create_dir("efi_secret", s->coco_dir);
>> + if (IS_ERR(dent)) {
>> + pr_err("Error creating efi_secret securityfs directory entry err=%ld\n",
>> + PTR_ERR(dent));
>> + return PTR_ERR(dent);
>> + }
>> + d_inode(dent)->i_op = &efi_secret_dir_inode_operations;
>> + s->fs_dir = dent;
>
> Why have two levels of subdirectories here? Do we expect more users for
> the coco/ directory?
>
In the RFCv2 of this series Borislav Petkov suggested [1] adding a
"coco/" directory (originally it was "<securityfs>/sev_secret"); he
envisioned that other coco platforms (SNP, TDX) might want to expose
something to userspace via filesystem.
[1] https://lore.kernel.org/linux-coco/YNoiydeow+ftvfYX@zn.tnic/
> See also the naming discussion in the cover letter sub-thread.
Yep, following.
Thanks,
Dov
Powered by blists - more mailing lists