From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 707001487EC for ; Mon, 13 May 2024 10:16:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715595408; cv=none; b=dgGpnCrw4DpHfsi5kRmYVODfxf/te2JRQcgC4EIGr5LZvXCl8pLzqAMJh7ZqvnqOg14jHGfVlvOkxcGURZ/BxQC0NWLsqjybwlsDJREGb6c3UnEggxWPZW9qHOVa81y6tyMZm6SnGUE/CBrWv85lCBeD/IOgqAqJMn5w35PiEIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715595408; c=relaxed/simple; bh=w2J5OBBDrrWIOjx9hHEVak1hUfdidIUqnvnM42Q/rCA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PfJMj8Z9eavlbTh1W+PrRkm9gfDI2lHgL60WtdDFlbmXatraE+kus49u0WH24MNDiuhinDEKD/jjHyRtryshciZpYJLmToYE25/Aerb0Qyb2oFhvuBF4kq15Ja95E8Uc3jNpHuYRlhfT5XSaL11UMtqwyuCuBAeiL1p0kLozvcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=zYQAVcUI; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="zYQAVcUI" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-51f174e316eso4920102e87.0 for ; Mon, 13 May 2024 03:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1715595404; x=1716200204; darn=lists.linux.dev; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8qyuzqvqTWW6REM5MvsMGdLvS+oewzpA8TVBEHmp2uw=; b=zYQAVcUIuL1w8201/AmHMjEDCrFrXSErh7WcVeTZ51W5rSPHkGhINdwkJF2ONBOYcW XXuWE5hv6w/GYXzcI4ZdUYlGsZ9HTiiafAkp4vp9tI1pbm29vEZWXNxX16pKum6p4sKh Q1f5zp8JJ887hEqBcV8JnsBoy1rylNkM3lWc88haJOZ6PZkp+Vtw9zzLBb7G50RPjZz6 L8slzE6wVTx5G5vW4ExZ79/VNED8e/nSNOGYEJx4VmlPGyyg8JmZwzZ9DdAq2qNHMAuQ b8kWHdaoAfMWE+wQUGhoRGO5mnadRkNNYhK1yJ0y8Fj9VJDAer5wY/GhCV1U+XKNNXdt 3Lsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715595404; x=1716200204; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8qyuzqvqTWW6REM5MvsMGdLvS+oewzpA8TVBEHmp2uw=; b=i21q21JU5zAinX/ZW2otUdyVswkrvN0TPA9OjOzxb+yqadtiuRRnHRV92kXkQclOoA yDCcKr+tKKbp2nxkH7BKx+o/elTyc8rYxllnH6LSgK5vubXFh5fGXvqoqRCMEIB5Q5SC /mT6YKfn53oPD7x3bbr09Y1lGgqJmfh97hXRcIL53ugg0Ju/iUVDZMgG6gxYWC+qHyHa YV44Er4qP9vAV8TfKFkwHphkVLs7XKsdcaVuNPe6y+HUQmJXCNDaQCOb6jVpSQ26OM5s XXYL7w4sIFXwRpnh8oDq3nptn083dKu9uANQT934lr3e+KCRmmZzbHGKLTf23f1BELfH PtBA== X-Forwarded-Encrypted: i=1; AJvYcCW6KhWIf7QcgRG2vipatZCnlDx+vg7tUsbPsHFxr04RCt6D1y7iH0QagQ+UnUMdeplt2BACAm2ghAu6iViqC+MfXhq+pMgSAK/gyA== X-Gm-Message-State: AOJu0YxAkYOlTJxlBMUBUrpVoq1xfakdgAtIJ0wS239eNyWZoV6Wcz17 Bja11ReduI/xxXPZZSkYMaN4RVota9/+7zGeqvM7xUR8jiHQmaL7vemjyNI0jzM= X-Google-Smtp-Source: AGHT+IEoGJmlp8+IVb5iCgzv2JW8GXaqhiqx14ov/8u43xecwfEJyHh/E/EsbCinP88RKF/YGMWzQQ== X-Received: by 2002:a05:6512:201:b0:51d:3a99:f22e with SMTP id 2adb3069b0e04-5220ff72e3amr5329107e87.59.1715595404303; Mon, 13 May 2024 03:16:44 -0700 (PDT) Received: from vermeer ([2a01:cb1d:81a9:dd00:b570:b34c:ffd4:c805]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad02csm10654926f8f.67.2024.05.13.03.16.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 03:16:43 -0700 (PDT) Date: Mon, 13 May 2024 12:16:41 +0200 From: Samuel Ortiz To: James Bottomley Cc: Dan Williams , Kuppuswamy Sathyanarayanan , Qinkun Bao , "Yao, Jiewen" , "Xing, Cedric" , Dionna Amalie Glaze , biao.lu@intel.com, linux-coco@lists.linux.dev, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 4/4] tsm: Allow for extending and reading configured RTMRs Message-ID: References: <20240128212532.2754325-1-sameo@rivosinc.com> <20240128212532.2754325-5-sameo@rivosinc.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 10, 2024 at 10:57:37PM -0400, James Bottomley wrote: > I'm not really sure where to hang this, since there's no posted agenda > or materials for the CCC meeting today. The agenda was posted on the linux-coco ml [1]. I sent a link to the presentation slides [2] to the thread. > However, it struck me you missed a third option: use the ima log > format. This has the advantage that we can define additional events > and have them published with a kernel patch (the IMA log format is > defined in the kernel). Thanks to the TCG, it's also CEL compatible > but doesn't require any sort of TCG blessing of the events. Plus we > also have existing kernel infrastructure to log to that format. That's an interesting idea. It may avoid having to extend the CEL spec with a new Content Type, but otoh the current spec defines which IMA events are supported. So adding new ones may require to also eventually extend the spec. But I guess since IMA is a Linux kernel subsystem, changing the kernel code and ABI would de-facto extend the TCG CEL IMA spec. Here I assume you're talking about the IMA_TEMPLATE CEL specified format, which is designed to accomodate for the current kernel IMA log format. The main drawback of this format is that the digest does not include the whole content event, making the CEL content type, the IMA tag name and both lengths (for the content event and the IMA content) untrusted for event log verifiers. CEL defines another IMA format (IMA_TLV), that hashes the whole event content. I think we should at least use that format as our output ABI, if we want to use a TCG specified IMA content type. Cheers, Samuel. [1] https://lore.kernel.org/linux-coco/61b65115-5945-4e27-89e4-bb6cba657f7f@linux.intel.com/ [2] https://docs.google.com/presentation/d/1qMk-8TiMigVmVAEDWXqPu9Jd7OJ8AGvCR34Lp2WunhU/edit?usp=sharing > Regards, > > James >