Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp484873pxb; Thu, 2 Sep 2021 08:26:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdsjAnvDbwI3pbtwMiWBM3s7U2PJmuk3+8Ps0LFh0xTOyJPpHxJdX1hjazVhJtV/zHDjrl X-Received: by 2002:a17:907:92c:: with SMTP id au12mr4396075ejc.523.1630596389075; Thu, 02 Sep 2021 08:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630596389; cv=none; d=google.com; s=arc-20160816; b=FR8uKijJ7/pFMObcM+xZAa/rhWIdGGHYRv/tGjBwVG+ICHJ6eupi6v3Z72CTBLk2SH jEn8K5dBM1o2SCVbmtcsuBL11j4tyALKlkm+ncTVPGxpNVf8yZz9YBPR//QALxcZJ5MW 3Y009tTFwQKjytGkOlEQZvGpYGYE6ULTF46gMb+ZCmpiF0n8Ysj6QAGKs9pXKRY71ccT 054wt7+cOK4QItcqCYNoP8U02OZi2gu48jHpiYfjlSmzI+4X6DsP3IFxAxrXgNU0XT8r Wf5wlflyiRM0YvToyhpj1g50GSg46mDzbJdYmS4dG1Emh/o/vE1e75IAzM/J3kxr4SbM jFMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:reply-to:from:subject :message-id:dkim-signature; bh=QbW4x9/Vy805LKx9h6xm30flkNXvZK4xKrhfq2rNVsM=; b=vp3pI30F++OeVkK5k10MLfc08i1Em5dA9vU6xVnmg0YzqHiaATZ2MalTEf+QlMvusy tJrSuzehsdRgICEKw3bWlxnAmAyyUwVplMmYEagHTzG/DyYt2tDyho+HpSCOsrqylU4n L3T1lScM1hb9Tf1goS+xUFowKrhvU8+ezC9Nz0pNUk7+4+zCjYtcDwOcVU28PTGnP1M4 UZUWqw0+UlxUqrvujgQSbEsaiGRsxbNp0sXHXlTRp5u18714woKfkpC2FCUzHcp7o7Mf 4b7H1B8R5UOvAAfN3T9FxeeRHFqfSvAUdlr52Slq0WjU2LXGqTHfMAIHHqIbM6EHglET Eyng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qDFtUTnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si2492358edx.506.2021.09.02.08.25.31; Thu, 02 Sep 2021 08:26:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qDFtUTnO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345767AbhIBPVR (ORCPT + 99 others); Thu, 2 Sep 2021 11:21:17 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51184 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345698AbhIBPVO (ORCPT ); Thu, 2 Sep 2021 11:21:14 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 182F3fF0001892; Thu, 2 Sep 2021 11:19:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : reply-to : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=QbW4x9/Vy805LKx9h6xm30flkNXvZK4xKrhfq2rNVsM=; b=qDFtUTnOBAow20c+ML9I06QGddD08jvRtZAvSC152HkG2vxhVePGxTTQMz3r/8yZWsn7 zVRfuHjo/IoToRA8mEtaoFa/zJave4+fktwcgLoaDxyq3dfD6gUYue6MmrhxntDXIscG zTKBoNo+7DV5tEptiNR0j2yLaTD6FF0nzgWCnVICLQYSc70NQhCTgPnoCdt7wWqsBuXh 5uSCiGwS7+6FSn3orWNg2HF9g4GEuPrI52zAnjgwOLoT39vASqoQotsYrq6cz1WxYLUF hY2RNfH9DIJ2DHz8WyFypNMISArR6a/YB/itw+f1KMsRDPvJO0zEC6HjvCROz4yah5Ww 5A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3au0dy26kh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 11:19:57 -0400 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 182F3gAC002344; Thu, 2 Sep 2021 11:19:57 -0400 Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com with ESMTP id 3au0dy26jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 11:19:57 -0400 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 182FIj8W002983; Thu, 2 Sep 2021 15:19:55 GMT Received: from b03cxnp07027.gho.boulder.ibm.com (b03cxnp07027.gho.boulder.ibm.com [9.17.130.14]) by ppma02wdc.us.ibm.com with ESMTP id 3atdxc6ck8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 02 Sep 2021 15:19:55 +0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 182FJsfd34603420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Sep 2021 15:19:54 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2F9D778068; Thu, 2 Sep 2021 15:19:54 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8E6D978078; Thu, 2 Sep 2021 15:19:52 +0000 (GMT) Received: from jarvis.int.hansenpartnership.com (unknown [9.211.89.117]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 2 Sep 2021 15:19:52 +0000 (GMT) Message-ID: <6cb65cb3bd69ae69bde044f809525e478bdb8512.camel@linux.ibm.com> Subject: Re: [PATCH 0/3] Allow access to confidential computing secret area in SEV guests From: James Bottomley Reply-To: jejb@linux.ibm.com To: Greg KH Cc: Dov Murik , linux-efi@vger.kernel.org, Borislav Petkov , Ashish Kalra , Brijesh Singh , Tom Lendacky , Ard Biesheuvel , James Morris , "Serge E. Hallyn" , Andi Kleen , "Dr. David Alan Gilbert" , Tobin Feldman-Fitzthum , Jim Cadden , linux-coco@lists.linux.dev, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 02 Sep 2021 08:19:51 -0700 In-Reply-To: References: <20210809190157.279332-1-dovmurik@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: X0BBfsUnrgBwFQKASWltwHcWwpPaUlmq X-Proofpoint-ORIG-GUID: av-NRex120oZ3yXsK5AxQ6f2yUdsz4KH X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-09-02_04:2021-09-02,2021-09-02 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2108310000 definitions=main-2109020091 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-09-02 at 17:05 +0200, Greg KH wrote: > On Thu, Sep 02, 2021 at 07:35:10AM -0700, James Bottomley wrote: > > On Thu, 2021-09-02 at 14:57 +0200, Greg KH wrote: > > [...] > > > Wait, why are you using securityfs for this? > > > > > > securityfs is for LSMs to use. > > > > No it isn't ... at least not exclusively; we use it for non LSM > > security purposes as well, like for the TPM BIOS log and for > > IMA. What makes you think we should start restricting securityfs > > to LSMs only? That's not been the policy up to now. > > Well that was the original intent of the filesystem when it was > created, but I guess it's really up to the LSM maintainers now what > they want it for. > > > > If you want your own filesystem to play around with stuff like > > > this, great, write your own, it's only 200 lines or less these > > > days. We used to do it all the time until people realized they > > > should just use sysfs for driver stuff. > > > > This is a security purpose (injected key retrieval), so securityfs > > seems to be the best choice. It's certainly possible to create a > > new filesystem, but I really think things with a security purpose > > should use securityfs so people know where to look for them. > > knowing where to look should not be an issue, as that should be > documented in Documentation/ABI/ anyway, right? > > It's just the overlap / overreach of using an existing filesystem for > things that don't seem to be LSM-related that feels odd to me. > > Why not just make a cocofs if those people want a filesystem > interface? > It's 200 lines or so these days, if not less, and that way you only > mount what you actually need for the system. Secrets transfer is actually broader than confidential computing, although confidential computing is a first proposed use, so I think cocofs would be too narrow. > Why force this into securityfs if it doesn't have to be? It's not being forced. Secrets transfer is a security function in the same way the bios log is. James