From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uHQDB7PpNWE/hAEAgWs5BA (envelope-from ) for ; Mon, 06 Sep 2021 12:13:07 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MFfzArPpNWFxUAAA1q6Kng (envelope-from ) for ; Mon, 06 Sep 2021 10:13:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9FF0FE49E for ; Mon, 6 Sep 2021 12:13:06 +0200 (CEST) Received: from localhost ([::1]:48104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mNBcf-0004xb-Rf for larch@yhetil.org; Mon, 06 Sep 2021 06:13:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNBcP-0004xS-TR for guix-devel@gnu.org; Mon, 06 Sep 2021 06:12:49 -0400 Received: from mail-4323.protonmail.ch ([185.70.43.23]:43226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mNBcL-0004YF-5R for guix-devel@gnu.org; Mon, 06 Sep 2021 06:12:49 -0400 Date: Mon, 06 Sep 2021 10:12:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail2; t=1630923155; bh=/UhD2hulvWaLo3TglB9lY4YjIrhU77i85MUkBM19Xs4=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=NYpOrJabZvHloEuQ84dQJh8ml8PjMuXax7GuwtNZH3jqD4G3uZnI3gJxR8OijtUtX 8yqsz1mRG4QgmVfNbLzPMMwrlJb6pzKp6O6aUohUjDU9+ifUqni+uBlhosmNFO+HcH Vpsin2oOwdm1n6D4Ov88rPaM1h/qOjkcOG4jbYve5pLfhyrJ7Vz3jezGx9+Gd2cidw H06obJd2b1FY30DxyH9WFOOY1gVNJfMhyDRWaeVEFzMd0VdQcqqF8lUQNTK/VPDbvq 6FufvC7yg6pz7LOhUhnSgvHnoQwiBKYYxgY6C9voYV4WLR/CW03t5kzr1+JW/+CyJB zSzy32bpNIiCQ== To: Danny Milosavljevic From: Attila Lendvai Subject: Re: trezor-agent: using trezor as gpg key Message-ID: <02ocO7FWQ3wA9_-sw6b-c55zb9SJVTWvNqPqVQHvtcGEHtvOp1TFUlbhzpJtQnhhFurmVw8mpW_J0wrV3oIXjKq6b-IR7LJ0RRiNbhH63EY=@lendvai.name> In-Reply-To: <20210903183512.2680d83e@scratchpost.org> References: <20210903183512.2680d83e@scratchpost.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=attila@lendvai.name; helo=mail-4323.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Attila Lendvai Cc: "guix-devel@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630923186; h=from:from:sender:sender:reply-to: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:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/UhD2hulvWaLo3TglB9lY4YjIrhU77i85MUkBM19Xs4=; b=gO5ivleGlVyk+5zE98tUq+Ux5HEV3mwyOoXk+dBxGfcqyjP0YJDzq/Na4B7pOW9uICcJft fAsNXg22e/DaJUyDvY/ijyUq1myDl4AmwZHpL5iHQc4Eh6fzMD1LDGrV3jV3NsNdzw1UY2 pyGmY4GV/v17usnpgkhOFe0PMkaQ01klwG+GlMAAAxYR2Jw8RXmg/idi6OHgVdp2ZyDoiU mn8wNRSwpEOROMNToeXwTJH72hk2NS9xC4GtFf7KISz7wStBTC1anqjlufm524RRCulBWs Lpac2QRTT/S8+uwzMmyh6RcG59L5wIlMNVkyJocAzAsPI49qFd1l5Ae8p3/TMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630923186; a=rsa-sha256; cv=none; b=kT+Rsvc/xe2ZP2GYltKboD7wXA2OtCTqA3rNk05CcViY9almRhq/1CGHIYsQ41owXJ145+ XZQqNlg//JVMZezJcWLQdHtQyLM0p+vM+66aBSZJA7Tym/Azd+ivyXY/CGMW5scoWYnqdt ZHMjHvGDVRKQBzdFJRP6YwC6tuWzGsJPwu1J6vpsQ+Hu0EXfX6XfbovmO3LtMjv0B4ywBv Jce6em7n94PILpuvmSM+0eeSwrKZeV+RpDBpQNoL8yllURbKZuq++PWR9GGMRqe3bopHBD 2zJ17HAIepBr6rTrmhwKO/YsLzNWUOMRuGKXgFIY0lPntekwsUjhShDmAoKqOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=NYpOrJab; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail2 header.b=NYpOrJab; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 9FF0FE49E X-Spam-Score: -2.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: y87lRgiCYe1E > strace -f trezor-gpg-agent 2>&1 |grep /dev this helped a lot, thank you! trezor-gpg-agent tries to open /dev/bus/usb/001/010, and a whole bunch of files and dirs under /sys/bus/usb/devices/, i.e. it did *not* touch /dev/hidraw0 nor /dev/usb/hiddev0. the latter of which is not even covered by the trezor udev rules: https://github.com/trezor/trezor-firmware/blob/master/common/udev/51-trezor= .rules > Even then, it only works fine once one logs out and back in, and at > the time of login have the usb device already be connected. I think > that's a bug in our elogind (sigh). luckily this seems to work fine for trezor. i have rebooted with it being unplugged, then plugged it in, and the group of the relevant files under /dev/ were properly `plugdev`. FTR, i didn't have my udev rules set up properly. i wrongly assumed that it's enough to just install the trezord-udev-rules package, but it's not. the proper config was: - install trezord-udev-rules system-wide - add `plugdev` to your user's supplementary-groups - append this to your services: (udev-rules-service 'trezor trezord-udev-ru= les #:groups '("plugdev")) now, moving on to updating the trezor packages. - attila PGP:=C2=A05D5F 45C7 DFCD 0A39