From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EE243165F18; Sat, 2 Nov 2024 10:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730543939; cv=none; b=qFo5mln3t+Fg35nHl8EYtPURsBvtXRtgomQhEDRwPbQRgg9a8QMOqsKbpHKicSoFI3YmjTGvSm32He1X3NWvRY/V48tjSw9qCW0M3GdAClAqCJudAzziS2w8UkAYDtLpzducReZbODP7SRiBOb5gvhrz3It9ey4ig7jAQ1vOLZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730543939; c=relaxed/simple; bh=VBKEa56BIF6QsRkD7RAecoTuv66Z7zv8Det8m4u7ftI=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=fdimTfroDMxnB8lTKocPMvL7hborgGTTXWaWMCGV3uYoK1++GaMm5vngoDLyHqVRi2k87f5KDGMXWh+hoAJFKXIbBCtlor5yJAyJIKWvaP3r06fb830qjTRI5UryE2sb1VKkW//cmBclNBMGl+j485zdCu604MK4g9WMRHmPeTM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gOtMufXP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gOtMufXP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACC7DC4CEC3; Sat, 2 Nov 2024 10:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730543938; bh=VBKEa56BIF6QsRkD7RAecoTuv66Z7zv8Det8m4u7ftI=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=gOtMufXPnc1DFubhW7urf50dPP0bw7KIiI3fvULoHrreHHmwFH9QwAfpNb54uDN18 kaAGkZTYHObw5uIJMbV9bUddVCc1ac0Saz5R1wPok7rFAng3z5LsAVZOXlyl/LCoCt G1hsDOSZJJDG9/uEQhCnicp3jmsm2plmYOIQmF7hHiJ/+a4a9RXHKtxhsRYhofwHAA lLkViIuMowQlJi/iR0N36yOu8ktoVAz+045SjYt1aw8Ju46YHIUBQqLfWk7NqGhDuM AEFABWsbKJAh+lmxj5cmSoWXmdQVVQTiAKI8qVrgMtzWekCyE9Ldt7bWWVUyLtMp5U CZ0rOmGMK8dyQ== Precedence: bulk X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 02 Nov 2024 12:38:53 +0200 Message-Id: Cc: "Jonathan Corbet" , "Peter Huewe" , "Jason Gunthorpe" , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH v2 1/2] tpm, tpm_tis: Introduce TPM_IOC_SET_LOCALITY From: "Jarkko Sakkinen" To: "Ard Biesheuvel" X-Mailer: aerc 0.18.2 References: <20241102062259.2521361-1-jarkko@kernel.org> In-Reply-To: On Sat Nov 2, 2024 at 11:02 AM EET, Ard Biesheuvel wrote: > Same for the ioctl() [as well as the read-write sysfs node]: looking > at the code (patch 19/20) it doesn't seem like user space needs to be > able to modify this at all, at least not for the patch set as > presented. So for now, can we just stick with making the sysfs node > read-only? Short answer: I have no idea. I would not mind that but neither the commit message for TPM give a clue on this. Actually, I *do not care* if it is RO and RW but I'm neither good at guessing random shit. I haad to assume it was *needed* for reason that I do not know given that sysfs attribute was RW. BR, Jarkko