From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18216426D37; Fri, 4 Sep 2026 06:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788502800; cv=none; b=fOsCQT65WxxTkSBcARezctA3TBTPLiGDyls8iW29tcWqnugJo9sdZoy9y8rRVvU91VzK4oUMmnpapdfX0obcDdpu78bPnGFhOr9LjR48tZjq+YBTSpz+mZF/9QQRTNofdITU9PFewseBl9T9fA7QNjR1hBiBMDbK6PNa35pe/y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788502800; c=relaxed/simple; bh=DAiwddbXR1MYm1N4KiZM56rZSXK0HXn3m3n7+4HIbBE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=es1Uy/nPcBxb7GdOa5Wexq3B+QRLGsrDJSp8hcUy1lIKnE3mQRp/Lr1Lktd1ckm+dP38xVz/iIjCYI2O7B+g1iHsXJ8g9Pj35/ZFitNVlGiCB9WDWn/7yVZ7PYrJlUESwblJgcwMaxepusEL94A7KggpTrs7fXLAxQX8ztQlNqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=jlcWveFr; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="jlcWveFr" Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68464jar3994208; Fri, 4 Sep 2026 06:19:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=A5vuUe ZalymWeDfD9MhY/ToFAN4FtGVMfCATD0412D4=; b=jlcWveFrZafK7GNtCclpd1 vz2WnJV0mzcc2u74tgNdT2kIGN4he8sMVwJ3UF9Q+Cm0iLaAydvp4uQAYINGNP7i a/nCeqeCcHUsZn4VCheXFqwU4wUpVxlaUNoQTDBsMB+EJ1+GjNzdzbROVR0PO0oR grge93R3GbaQSOCYL5DhiGP7uGwWlNo8b3gjqMWAQFU+n1RN/Yz7XFe3iDuSmma4 fXmxagZe9CzvmOSSnXlKGzXwOO95LaY+8YH0liJt7I9My5fTu+HrojWg/8d2+lF6 KlqAbIlQmzWKFQL19RVPIPK+XnwN5xkWomQBRk/KLJWBu1swDxGSDOUAJL/9gHDQ == Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4gbnue8kcc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Sep 2026 06:19:42 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id 6846BfW5019713; Fri, 4 Sep 2026 06:19:41 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4gcarkkhhe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 04 Sep 2026 06:19:41 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6846JbvT39518590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 Sep 2026 06:19:37 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B834820043; Fri, 4 Sep 2026 06:19:37 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 27ECC20040; Fri, 4 Sep 2026 06:19:31 +0000 (GMT) Received: from [9.61.247.46] (unknown [9.61.247.46]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTPS; Fri, 4 Sep 2026 06:19:30 +0000 (GMT) Message-ID: Date: Fri, 4 Sep 2026 11:49:27 +0530 Precedence: bulk X-Mailing-List: linux-integrity@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 10/10] pseries/plpks/wrapkey: expose PKWM wrapping key management to userspace via sysfs To: Srish Srinivasan , linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, James.Bottomley@HansenPartnership.com, jarkko@kernel.org, zohar@linux.ibm.com, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, nayna@linux.ibm.com References: <20260831111738.334857-1-ssrish@linux.ibm.com> <20260831111738.334857-11-ssrish@linux.ibm.com> Content-Language: en-US From: R Nageswara Sastry In-Reply-To: <20260831111738.334857-11-ssrish@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-GUID: U9rcSXbnhD-PaOlzqlMv4-YGo_OfT4Q3 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTA0MDA1NCBTYWx0ZWRfXyb3UxbB63NTa r72RC4c0mZvAGv/iMATnndaqHcRk9zH3Rb/p5KO7KBAlv3BU3YhpwiqOJs1C1wd94sLBfkuoymv FF+f8pb0kibRVRYAhHknOnr/Z8rX6d7N4Hq4qQPs7RuGGLFB3ABq3DxBqHDWCFFT70uGaeHHCMU zztf++3kq77UPN0kJrB8wWbaULqO6Jql0MK0tshKuAUF6aESz1cIE5x56iYc++zmEZ8PGUvwpXA SP/4GVyA8QLF84arvz7J4buUtnv4yLIRe91nyCuM77lKBtavkwvKREIyGHkaRZnd0h4yT5DKSfH v4Con2HRzny9YfMAF2eHuQiyvUCDgZzbnLxXFJWd5tuxAXMQmT0AgNFE/pqaOUxUnXjCHfT46vY /rQJ1JGlJvnoXjjn1gmQPKjt3Ogd1IJNWbNeQRyOhcZfz9/5taAvNA4goIsd9rVXq/2N6IsDFjb U3n61H5zI+evLrpgbAw== X-Proofpoint-ORIG-GUID: aIIzWtzrqauZH2flR-WaV427NTP2jbbo X-Proofpoint-Spam-Info: AW1haW4tMjYwOTA0MDA1NCBTYWx0ZWRfX9LsuVB9T+Ev4 qSUwZCCxPzGFcRWl8JXEaBoqEI4uHYJAlXy6bqGpnv2zUmBAaUIkBG+3zUo9yKMKpR0Ua3g3WB0 dbSioUk8SLAjk/1ei47HGotEexh1pZ8= X-Authority-Analysis: v=2.4 cv=B92JFutM c=1 sm=1 tr=0 ts=6a9a62ff cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=VnNF1IyMAAAA:8 a=FeG7EYxqCxfRIhz7DHoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-04_02,2026-09-03_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 clxscore=1015 suspectscore=0 phishscore=0 lowpriorityscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609040054 On 31.08.2026 4:47 PM, Srish Srinivasan wrote: > The PKWM trusted source currently uses a single default wrapping key > created during initialization. However, PKWM also supports user-created > wrapping keys for better isolation between trusted keys. > > Expose wrapping key lifecycle operations through sysfs to allow users to > create and manage their own wrapping keys. > > Create a sysfs interface at /sys/firmware/plpks/wrapkey with the following > attributes: > > create - Create a new wrapping key with a user-provided label > delete - Delete a revoked wrapping key by label > revoke - Revoke a wrapping key by label > unrevoke - Unrevoke a previously revoked wrapping key by label > list_active - List labels of all active (non-revoked) wrapping keys > list_revoked - List labels of all revoked wrapping keys > > User-provided labels are validated to contain only alphanumeric characters. > > Wrapping key lifecycle constraints: > - A wrapping key must be revoked before it can be deleted > - Revoked wrapping keys cannot be used for wrap operations until unrevoked > - The default wrapping key cannot be revoked or deleted; it always appears > in list_active > > The wrapping keys themselves are confidential objects stored in PLPKS. Only > the user-provided labels are exposed to userspace for identification and > management purposes. > > These user-created wrapping keys can be used in seal/unseal operations via > the wrapping_key=