From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta033.useast.a.cloudfilter.net (omta033.useast.a.cloudfilter.net [44.202.169.32]) by sourceware.org (Postfix) with ESMTPS id B7D553858D33 for ; Mon, 28 Aug 2023 16:06:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B7D553858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com Received: from eig-obgw-5001a.ext.cloudfilter.net ([10.0.29.139]) by cmsmtp with ESMTP id adXjqAIXwez0Cael1qiBGT; Mon, 28 Aug 2023 16:06:27 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id aelHqife7gfmkaelHq9hHK; Mon, 28 Aug 2023 16:06:43 +0000 X-Authority-Analysis: v=2.4 cv=e/wV9Il/ c=1 sm=1 tr=0 ts=64ecc613 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=UttIx32zK-AA:10 a=Qbun_eYptAEA:10 a=CCpqsmhAAAAA:8 a=UVvbqBTHLyv0bue3pg0A:9 a=ul9cdbp4aOFLsgKbc677:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=39HJyBzokYHjQD9yuH9LnYjaT3MTBhnmLsvivyxAEDM=; b=l0iEIvrtCFfkI4ZmeNk2fr0RHJ dDwY/oyRp1LgpvflKP8eAjoEwdRJ7cTxaIXleu6IY6QSmXaDjeLJl2MX3mlrPxkqiaQNpPMQgHZLI Eyu/OrysfC5r+0hCpu98bL/WU; Received: from 75-166-150-212.hlrn.qwest.net ([75.166.150.212]:51400 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qaelG-003XlL-2w; Mon, 28 Aug 2023 10:06:42 -0600 From: Tom Tromey To: Andrew Burgess via Gdb-patches Cc: Andrew Burgess Subject: Re: [PATCH 07/10] gdb: add qMachineId packet References: <94e68e6c1400ede2e9e46fc8ef76bd82aa533e0e.1692200989.git.aburgess@redhat.com> X-Attribution: Tom Date: Mon, 28 Aug 2023 10:06:42 -0600 In-Reply-To: <94e68e6c1400ede2e9e46fc8ef76bd82aa533e0e.1692200989.git.aburgess@redhat.com> (Andrew Burgess via Gdb-patches's message of "Wed, 16 Aug 2023 16:55:03 +0100") Message-ID: <87ledvtalp.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.150.212 X-Source-L: No X-Exim-ID: 1qaelG-003XlL-2w X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-150-212.hlrn.qwest.net (murgatroyd) [75.166.150.212]:51400 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfMAP2+/Os9G7w9Ko2FoCCi2G7s0cPVRVtSpnUKFVAwQkDNTG8gwevLjQ6+KsYciRWfGQweIhfp3DpYUoVdB7Ovm1XTAlfJc7NnFxr2ijai0hnUcfTQlK hJoHIdU5zmy57nNLrR2iVUlFOJABuig7nkDL2JQbW5X5G2evdzIIpMOV/EeYNWuJgO+V5qIFqyY+OS+XaYv9v7lzqDlt4PNUgpc= X-Spam-Status: No, score=-3018.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Andrew" == Andrew Burgess via Gdb-patches writes: Andrew> linux-boot-id - this returns the value from the file Andrew> /proc/sys/kernel/random/boot_id, which, if I understand correctly, Andrew> should be unique(ish) for each boot of each machine, and At one point I thought I found docs saying this should be kept confidential and in particular not sent over the network. I can't find those any more but I did find them for /etc/machine-id. When we discussed this on irc, Pedro had a different idea, based on using the existing remote file operations: write a random number / identifying string to a local file (say, something in /tmp or maybe gdb's cache directory), then ask the remote to read it. If the read succeeds and the result is identical, assume the machines are the same. Tom