X-Loop: help-debbugs@HIDDEN Subject: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` Resent-From: Katherine Cox-Buday <cox.katherine.e@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 17 Jul 2021 21:45:02 +0000 Resent-Message-ID: <handler.49611.B.16265582421408 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 49611 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49611 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.16265582421408 (code B ref -1); Sat, 17 Jul 2021 21:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jul 2021 21:44:02 +0000 Received: from localhost ([127.0.0.1]:54702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1m4s6M-0000MV-7v for submit <at> debbugs.gnu.org; Sat, 17 Jul 2021 17:44:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:33524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <cox.katherine.e@HIDDEN>) id 1m4s6J-0000M7-0I for submit <at> debbugs.gnu.org; Sat, 17 Jul 2021 17:44:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <cox.katherine.e@HIDDEN>) id 1m4s6I-0003ZT-OH for bug-guix@HIDDEN; Sat, 17 Jul 2021 17:43:58 -0400 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]:40905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <cox.katherine.e@HIDDEN>) id 1m4s6H-0003d4-Cf for bug-guix@HIDDEN; Sat, 17 Jul 2021 17:43:58 -0400 Received: by mail-lf1-x12c.google.com with SMTP id a12so22062414lfb.7 for <bug-guix@HIDDEN>; Sat, 17 Jul 2021 14:43:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=24cYSGwZSqqzN+4dYdwykgJF8EOBS37PYPsFEiwnOrQ=; b=KkvMOLsahdCve11EThVgWSGPtw8bq9bsosZq6lB/UxmFakS9e2Rs6es90ZY2nGrUaY Zx6uwa+7jgp5nj8EjwMqcYpgvGkSBQXdJynEGV21JFrNoVPQ5f1U/JMt2UKfXaWQUW49 NRJCq/vJ7cJnkV8aHaoFjK0kA5R0FL8WfEv0tivc4P8ABa6KiXKV26Ub+1Bi5XWMwZCx 3TDPrC8PArt9ptXtYxsFPnRJdatL0ox3bH6xHzzwD18VWCgXhXoN//MffbxcvmbhSdPZ R6O0xJ5/I9+sDOpCBfvlyhs571KIZBa5sk0lSPqS6u+Nm3fY4UEvWN1LJS3d89ea/cBv 4lxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=24cYSGwZSqqzN+4dYdwykgJF8EOBS37PYPsFEiwnOrQ=; b=UXk06hPtV6APbpvUHB7PPSsm04iesbWRDCTISBuulJBlcMRL0h1dBWqZCTWkHQlKED XbK2EZczTO1JoBA+xchQQNrACmpxnNKeugJBkwSDPxqh3V1K9jJTHrKzrbYivXAo8ohN +ixiBHMm65srKh0pnQNIKv5hznDmIxqaNP4MH8CVBGT3okvWvpT2M40PeAB+AvdjVv/l +sglM2J5Li23STtLro//I0K7jz6JbEf1qLgzstbGzZhZz+yYpXS1zuvwecRrkHIZcW+P zWdjQKAAIsU9gT/tBpr+jGrSZn8rM13A6X4EklQs1cyHNnTuF0vxQBVdd/uEd8KPalUj +Vjw== X-Gm-Message-State: AOAM533h+JGnIL2AoC6hsA8UPxLGiXtTrf4BAOf5vJxa/fLLNvad/lO2 sAAuf5Qp0IYmuvJNJF0RxacYBFS0eASy9i5bV1ziz0/PgsA= X-Google-Smtp-Source: ABdhPJwfa+U0yFVghkTgVueGlksTLj87t1ufZ0UC025pZSIbZ+C4FLIc/EW2MpGh3iE8uXFZjh6Fnr5x27p7i2l1nJw= X-Received: by 2002:a05:6512:3325:: with SMTP id l5mr12719522lfe.527.1626558234374; Sat, 17 Jul 2021 14:43:54 -0700 (PDT) MIME-Version: 1.0 From: Katherine Cox-Buday <cox.katherine.e@HIDDEN> Date: Sat, 17 Jul 2021 16:43:43 -0500 Message-ID: <CA+TvSRiJXBQwBJJK9BKY804ZiBEAxKAXMkrR4pH5+9XH+Xq7Fw@HIDDEN> Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=cox.katherine.e@HIDDEN; helo=mail-lf1-x12c.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) #+BEGIN_EXAMPLE [ 8.280462] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 8.282686] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 8.284394] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 8.284415] cfg80211: failed to load regulatory.db #+END_EXAMPLE and #+BEGIN_EXAMPLE $ find -L /run/current-system -name regulatory.db /run/current-system/profile/lib/firmware/regulatory.db #+END_EXAMPLE
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Katherine Cox-Buday <cox.katherine.e@HIDDEN> Subject: bug#49611: Acknowledgement (Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db`) Message-ID: <handler.49611.B.16265582421408.ack <at> debbugs.gnu.org> References: <CA+TvSRiJXBQwBJJK9BKY804ZiBEAxKAXMkrR4pH5+9XH+Xq7Fw@HIDDEN> X-Gnu-PR-Message: ack 49611 X-Gnu-PR-Package: guix Reply-To: 49611 <at> debbugs.gnu.org Date: Sat, 17 Jul 2021 21:45:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 49611 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 49611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49611 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#49611: Acknowledgement (Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db`) Resent-From: Katherine Cox-Buday <cox.katherine.e@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 17 Jul 2021 21:51:02 +0000 Resent-Message-ID: <handler.49611.B49611.16265586202032 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49611 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49611 <at> debbugs.gnu.org Received: via spool by 49611-submit <at> debbugs.gnu.org id=B49611.16265586202032 (code B ref 49611); Sat, 17 Jul 2021 21:51:02 +0000 Received: (at 49611) by debbugs.gnu.org; 17 Jul 2021 21:50:20 +0000 Received: from localhost ([127.0.0.1]:54707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1m4sCS-0000Wi-1h for submit <at> debbugs.gnu.org; Sat, 17 Jul 2021 17:50:20 -0400 Received: from mail-lj1-f172.google.com ([209.85.208.172]:43561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <cox.katherine.e@HIDDEN>) id 1m4sCM-0000WL-Pb for 49611 <at> debbugs.gnu.org; Sat, 17 Jul 2021 17:50:18 -0400 Received: by mail-lj1-f172.google.com with SMTP id bn5so18934141ljb.10 for <49611 <at> debbugs.gnu.org>; Sat, 17 Jul 2021 14:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/59Nn7Sjcbe55VVX+eHw0GbMNA06A7NsGuCdtA3sFo4=; b=ou3z1PoK2rwy8nPHg05owhOi+MDhwqo+10ZF0nH/iiWug46+CmhEKoD0DfLURc2FuR uSHJIITu6ZIi8lD+rJKq+SORN+lmSv31DUG/6X5UMYu3uMrBT2Fh11aRAyC1w8JL4d+b T1On84R+WvrqbHGhOJZQFUEsf6X8y/tJact2Ekzf6blkYnZLNXYoo/ggdPPhSfzxuGzr IUbgpyOmzVpSEllfFHgJGgGyIPOKvSZiEsNrZY1lshvl9YPX144JeDSIV1jXw61dFz+I 2605M8P/LvBV5pzVVngUjbMKZ/oW0sBEOMVk/fNV2c3Je8+tTWAyDoawcVRgZEmKxxdb 7rLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/59Nn7Sjcbe55VVX+eHw0GbMNA06A7NsGuCdtA3sFo4=; b=s//jn0x6aFX71nTURlehnv4v53wrKzq0kNb6xhjPRVj8C35LwYvOAwocQzVtA74Cwv a+uyzI79q93UlTvUPPUy1xnLHhcuf/vj693KxvnwokSYnfesK4qmoYVdk/Ytl5JxsDQQ QpSPnXFD3I1uibKVo9sKHlrrbqR14qD5iEzGAoA8/SAyy/0LMroLKsCMYxPEVRD+eHMe so/6yD3WFP4rcTgReGSF0w4nuW0TxIGeY+ZTsZmlSpU3GLjo5kVr7hU+1S5QLzQDRjHt 35vxOtUur18eyHbdTqI+nbJwjP+NFdJFrtdpVZjHkHdtY6GFDVUsX0sEzh+MyaCwkhUD +ZdQ== X-Gm-Message-State: AOAM531W6HCe3H94a6jI3QRq8JjqDqbSf/6ecT0CurBr3cZ5kajBAe51 5ELqItm/2zzwP3QQE1Bzl62VFLOZreqVJx4TkNVXhEojENE= X-Google-Smtp-Source: ABdhPJwZ4yrPQvxLJdO+1b10c/HBVz2NgqV/oUZX6JRzjRgV+4fSE6oND0FDo1GpAz6r+Zxejs1C8I0hFEd2dBy9EZE= X-Received: by 2002:a2e:390e:: with SMTP id g14mr15292826lja.191.1626558608557; Sat, 17 Jul 2021 14:50:08 -0700 (PDT) MIME-Version: 1.0 References: <CA+TvSRiJXBQwBJJK9BKY804ZiBEAxKAXMkrR4pH5+9XH+Xq7Fw@HIDDEN> <handler.49611.B.16265582421408.ack <at> debbugs.gnu.org> In-Reply-To: <handler.49611.B.16265582421408.ack <at> debbugs.gnu.org> From: Katherine Cox-Buday <cox.katherine.e@HIDDEN> Date: Sat, 17 Jul 2021 16:49:57 -0500 Message-ID: <CA+TvSRgY1TfHG+joyR8HFB6xCNx4oKHP-eNgzB5a4+1YAGWR0w@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Attempting to do this manually with crda fails as well: #+BEGIN_EXAMPLE $ guix environment --ad-hoc crda [env] $ sudo COUNTRY=US crda Failed to set regulatory domain: -7 #+END_EXAMPLE On Sat, Jul 17, 2021 at 4:45 PM GNU bug Tracking System <help-debbugs@HIDDEN> wrote: > > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-guix@HIDDEN > > If you wish to submit further information on this problem, please > send it to 49611 <at> debbugs.gnu.org. > > Please do not send mail to help-debbugs@HIDDEN unless you wish > to report a problem with the Bug-tracking system. > > -- > 49611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49611 > GNU Bug Tracking System > Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#49611: Despite wireless-regdb being installed in my operating-system, dmesg indicates it can't find `regulatory.db` Resent-From: Brice Waegeneire <brice@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sun, 18 Jul 2021 18:13:01 +0000 Resent-Message-ID: <handler.49611.B49611.162663192232486 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 49611 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Katherine Cox-Buday <cox.katherine.e@HIDDEN> Cc: 49611 <at> debbugs.gnu.org Received: via spool by 49611-submit <at> debbugs.gnu.org id=B49611.162663192232486 (code B ref 49611); Sun, 18 Jul 2021 18:13:01 +0000 Received: (at 49611) by debbugs.gnu.org; 18 Jul 2021 18:12:02 +0000 Received: from localhost ([127.0.0.1]:57143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1m5BGk-0008Ru-Gh for submit <at> debbugs.gnu.org; Sun, 18 Jul 2021 14:12:02 -0400 Received: from mslow1.mail.gandi.net ([217.70.178.240]:60299) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <brice@HIDDEN>) id 1m5BGh-0008RT-Hb for 49611 <at> debbugs.gnu.org; Sun, 18 Jul 2021 14:12:00 -0400 Received: from relay7-d.mail.gandi.net (unknown [217.70.183.200]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 7BE3AC4164 for <49611 <at> debbugs.gnu.org>; Sun, 18 Jul 2021 17:48:06 +0000 (UTC) Received: (Authenticated sender: brice@HIDDEN) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 5857720004; Sun, 18 Jul 2021 17:47:59 +0000 (UTC) From: Brice Waegeneire <brice@HIDDEN> References: <CA+TvSRiJXBQwBJJK9BKY804ZiBEAxKAXMkrR4pH5+9XH+Xq7Fw@HIDDEN> Date: Sun, 18 Jul 2021 19:47:54 +0200 In-Reply-To: <CA+TvSRiJXBQwBJJK9BKY804ZiBEAxKAXMkrR4pH5+9XH+Xq7Fw@HIDDEN> (Katherine Cox-Buday's message of "Sat, 17 Jul 2021 16:43:43 -0500") Message-ID: <87r1fvsed1.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello Katherine, TL;DR: =E2=80=9Ciw reg set US=E2=80=9D correctly set the regulatory region = from userland but Guix can't set it just from the kernel. Katherine Cox-Buday <cox.katherine.e@HIDDEN> writes: > #+BEGIN_EXAMPLE > [ 8.280462] cfg80211: Loading compiled-in X.509 certificates for > regulatory database > [ 8.282686] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' > [ 8.284394] platform regulatory.0: Direct firmware load for > regulatory.db failed with error -2 > [ 8.284415] cfg80211: failed to load regulatory.db > #+END_EXAMPLE There is three way to make the module cfg80211 load a regulatory database: 1. Baking the DB into the kernel at build time by replacing the kernel's limited DB with the one from 'wireless-regdb' via the option CONFIG_CFG80211_INTERNAL_REGDB=C2=B9. 2. Loading the DB at boot time as a signed firmware file (lib/firmware/regulatory.db from 'wirerless-regdb') via the module 'cfg80211'. 3. Doing it in userland with the helper 'crda' trough the utility 'iwd' or its predecesor 'wpa_supplicant'.=C2=B2 From what I understand and what I tested, only the third method works in Guix System ATM. It could be usefull to also support the first or second method to not depend on the userland setting the wireless regulatory settings. The error you are experiencing come from the second method failing to load the signed firmware file. The issue is that Guix's 'wireless-regdb' is build from source and not just copied as other distribution do, where the provided binary also has a signature which the kernel accept through a built in public key. Our build version isn't signed at all, the commentaries in the definition for the package say Guix don't want to maintain its own key for signing this package, which is understable and state that Guix architecture already provide a similar level of authenticity (I'm not so sure of that part). So this error message should be harmless expected in some less common context, such as having the rootfs on an NFS and using a wireless connection to connect to the NFS server. We could fix that without maintaining keys by baking the DB into the kernel (first method). > #+BEGIN_EXAMPLE > $ find -L /run/current-system -name regulatory.db > /run/current-system/profile/lib/firmware/regulatory.db > #+END_EXAMPLE We don't need the regulatory.db from 'wirelress-regdb' to be in the system profile, instead it should be added to the operating-system's firmware field. And the kernel will find it the directory contained in =E2=80=9C/sys/module/firmware_class/parameters/path=E2=80=9D. =C2=B9 https://cateee.net/lkddb/web-lkddb/CFG80211_INTERNAL_REGDB.html =C2=B2 https://wireless.wiki.kernel.org/en/developers/regulatory/crda#chang= ing_regulatory_domains Cheers, - Brice
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.