From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FE25C433EF for ; Mon, 31 Jan 2022 19:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359216AbiAaTKk (ORCPT ); Mon, 31 Jan 2022 14:10:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230501AbiAaTKi (ORCPT ); Mon, 31 Jan 2022 14:10:38 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9400C061714 for ; Mon, 31 Jan 2022 11:10:38 -0800 (PST) Received: from zn.tnic (dslb-088-067-221-104.088.067.pools.vodafone-ip.de [88.67.221.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 470921EC0441; Mon, 31 Jan 2022 20:10:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1643656233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=nt+7MnJXJXHekJBzGjxIlCp+1Yx50xpN93dgm1OTVAU=; b=osc5qZKkjaHLkb8m4DX0sua0HB77CV9ocTi4Ze+q/10rVEkx9OSuCp8pIuyNyYJTyhK5WS xme8D2VmOgQzICb1FnyjvcA+Uf/S2slpHWcDjKWK9iOSPM3FLGsCA4L9AthjOQaKCjjS6h eBovgR4pNI4w44Gys7JoSntkwlBQgLg= Date: Mon, 31 Jan 2022 20:10:29 +0100 From: Borislav Petkov To: "Luck, Tony" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Smita Koralahalli Channabasappa , Wei Huang , Tom Lendacky , patches@lists.linux.dev Subject: Re: [PATCH v2 0/6] PPIN (Protected Processor Inventory Number) updates Message-ID: References: <20220107225442.1690165-1-tony.luck@intel.com> <20220121174743.1875294-1-tony.luck@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 31, 2022 at 10:49:32AM -0800, Luck, Tony wrote: > I think any paranoia about having a user readable "serial number" > should be gone by now. Those wacky web folks found a dozen different ways > to track your every move on the internet so that adverts for whatever > you just searched for will follow you for days. It seems highly > unlikely that browser writers will bother reading ppin and adding it > to cookies. > > But I didn't want to get distracted by that, so made the file mode 0400. So by that logic, having it root-only would be only nuisance for FRU or whatever software accesses it, so why not simply make it readable by everyone then? Lemme be clear: I'm being the devil's advocate here on purpose because I want to make sure we don't walk into some privacy thing we haven't thought about at the time. So I guess 0400, root:root would be the correct thing to do - admins can then change permissions later or so. Rather than making it readable by everyone by default and leaving it to people to tighten it after boot. Hmmm. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette