GNU bug report logs - #49649
[PATCH] gnu: Add regulatory.db in %base-firmware.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Brice Waegeneire <brice@HIDDEN>; Keywords: patch; dated Mon, 19 Jul 2021 21:16:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 49649 <at> debbugs.gnu.org:


Received: (at 49649) by debbugs.gnu.org; 23 Jul 2021 09:56:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 23 05:56:00 2021
Received: from localhost ([127.0.0.1]:42351 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m6ruS-0007jS-HV
	for submit <at> debbugs.gnu.org; Fri, 23 Jul 2021 05:56:00 -0400
Received: from tobias.gr ([80.241.217.52]:50314)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1m6ruP-0007jI-Un
 for 49649 <at> debbugs.gnu.org; Fri, 23 Jul 2021 05:55:58 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=gFwFtIiM/bN3B
 yj7Zy29vBcsAipck7iR9NRB2E9PQC0=;
 h=references:in-reply-to:subject:cc:
 to:from:date; d=tobias.gr; b=mr4/bEbyVA5kjh1e25zatrHPZALEo+WZeTgfdvLtf
 Nzu5/zs6ZKYN213WK+xDDXA9IIrgNyXT1w3fLmu4fSDRDDqbgzhksUm3Syf358/FMhgu5h
 GPIhM+MhpozXOs6CAQUOjPlJ1/y5a4RejlaBQ6ntZnf+Pr+htPRGVlp1CZqO2c1gDK4Jxb
 UngRzzTyeyHf2+h/7KfdXlMg/rZB8MG5CLFK4xQ2QSnzQUkNTxxPJDY128CJY3BxAffR7k
 KV5HnWCj78Q5qphiE+jX53Zw4o2twxAyaVHUHl4Q7tol8VFZy8XvIwNhOz+rRQ1boUzpnG
 LcYxed3SKpRlE3nM6x70w==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 1c2b0462;
 Fri, 23 Jul 2021 09:55:51 +0000 (UTC)
MIME-Version: 1.0
Date: Fri, 23 Jul 2021 11:55:51 +0200
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: [bug#49649] [PATCH] gnu: Add regulatory.db in %base-firmware.
In-Reply-To: <87y29xbdj2.fsf@HIDDEN>
References: <20210719211528.22649-1-brice@HIDDEN>
 <87bl6xktf5.fsf@HIDDEN> <87r1fshf6r.fsf_-_@HIDDEN>
 <bc6967e5952ce53555817dc17c7f64f8@HIDDEN> <87y29xbdj2.fsf@HIDDEN>
Message-ID: <fa9b9abba4bcd5a28d722d863a689d3c@HIDDEN>
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49649
Cc: 49649 <at> debbugs.gnu.org, Brice Waegeneire <brice@HIDDEN>
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 (-)

On 2021-07-23 11:11, Ludovic Court├Ęs wrote:
> In that case we have a practical interest in making db loading work, as
> this would allow (some) users to use a wider part of the frequency
> spectrum.

Absolutely.  It's still important, just not someone-could-get-arrested 
urgent.  So I hope the bit-identical build works out.

Kind regards,

T G-R

Sent from a Web browser.  Excuse or enjoy my brevity.




Information forwarded to guix-patches@HIDDEN:
bug#49649; Package guix-patches. Full text available.

Message received at 49649 <at> debbugs.gnu.org:


Received: (at 49649) by debbugs.gnu.org; 23 Jul 2021 09:11:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 23 05:11:40 2021
Received: from localhost ([127.0.0.1]:42295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m6rDY-0006e1-HN
	for submit <at> debbugs.gnu.org; Fri, 23 Jul 2021 05:11:40 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47398)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1m6rDW-0006do-WF
 for 49649 <at> debbugs.gnu.org; Fri, 23 Jul 2021 05:11:39 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53356)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1m6rDP-0002rq-Mc; Fri, 23 Jul 2021 05:11:31 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42904 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1m6rDP-0001Ks-EN; Fri, 23 Jul 2021 05:11:31 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: [bug#49649] [PATCH] gnu: Add regulatory.db in %base-firmware.
References: <20210719211528.22649-1-brice@HIDDEN>
 <87bl6xktf5.fsf@HIDDEN> <87r1fshf6r.fsf_-_@HIDDEN>
 <bc6967e5952ce53555817dc17c7f64f8@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 5 Thermidor an 229 de la =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Fri, 23 Jul 2021 11:11:29 +0200
In-Reply-To: <bc6967e5952ce53555817dc17c7f64f8@HIDDEN> (Tobias
 Geerinckx-Rice's message of "Tue, 20 Jul 2021 23:56:40 +0200")
Message-ID: <87y29xbdj2.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: -2.3 (--)
X-Debbugs-Envelope-To: 49649
Cc: 49649 <at> debbugs.gnu.org, Brice Waegeneire <brice@HIDDEN>
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: -3.3 (---)

Hi!

Tobias Geerinckx-Rice <me@HIDDEN> skribis:

>> If we want to be sure such spourious emssions can't
>> happen we need to fix the loading of 'regulatory.db' by the kernel
>
> That's not true.  The whole point of the world regulatory domain is to
> be the subset of all other regdb entries.

In that case we have a practical interest in making db loading work, as
this would allow (some) users to use a wider part of the frequency
spectrum.

Thanks for looking into this, comrades!

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#49649; Package guix-patches. Full text available.

Message received at 49649 <at> debbugs.gnu.org:


Received: (at 49649) by debbugs.gnu.org; 20 Jul 2021 21:56:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 20 17:56:48 2021
Received: from localhost ([127.0.0.1]:35608 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m5xjM-00049R-Ft
	for submit <at> debbugs.gnu.org; Tue, 20 Jul 2021 17:56:48 -0400
Received: from tobias.gr ([80.241.217.52]:50312)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1m5xjK-00049I-6U
 for 49649 <at> debbugs.gnu.org; Tue, 20 Jul 2021 17:56:47 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=O1b4XJDYqBrj1
 KbM1J47MEnDo2cJIpu7hiKjTtmyTmo=;
 h=references:in-reply-to:subject:cc:
 to:from:date; d=tobias.gr; b=Dp9M1LU3t2KrzR8tvv5MdDVn2J0ZqngX14n4ARcw9
 ZG12n5DFW3K+84T886bCvBgBFetu5WAaYBG0x0vj5jB4cmmQC/4mV7s5IFqXUxIL9B6JQQ
 Ytc07eFsZujZnbKoVlneDoKHRyzYF1YiCmQ6MK3iDPLFbQw0pgpD5iVq/ulfFaN8SqeDC8
 hXuVffx0YSAfeCjfMXuOFuLd/KYtuCzZAq7iha6+AAgW6mkvJmA5czD7NbIVFOYkjFdOPH
 0DTgTjGh+JFKfwIh6UnOtZoEwTuyk2KOb2VFs/c3bK0dh7XRslQDsePq3nWlFEG/Jfjbaf
 jka/qCpbnFIvpKg9Uknjg==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 9728caf1;
 Tue, 20 Jul 2021 21:56:40 +0000 (UTC)
MIME-Version: 1.0
Date: Tue, 20 Jul 2021 23:56:40 +0200
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: Brice Waegeneire <brice@HIDDEN>
Subject: Re: [bug#49649] [PATCH] gnu: Add regulatory.db in %base-firmware.
In-Reply-To: <87r1fshf6r.fsf_-_@HIDDEN>
References: <20210719211528.22649-1-brice@HIDDEN>
 <87bl6xktf5.fsf@HIDDEN> <87r1fshf6r.fsf_-_@HIDDEN>
Message-ID: <bc6967e5952ce53555817dc17c7f64f8@HIDDEN>
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 49649
Cc: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>, 49649 <at> debbugs.gnu.org
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 (-)

[Terse reply whilst travelling, but this stuff is extremely important to 
get right.]

Brice, Ludo',

Ludo's suggestion to leverage reproducibility sounds promising!

On 2021-07-20 23:02, Brice Waegeneire wrote:
> We can either, bake the DB into the kernel at build time

This hasn't been supported since 2015 (Linux ~4.14).

> I don't know how zelously we want to comply to radio frenquency
> regulation

Utterly.  Like our future software freedom depends on it.

Luckily, the kernel falls back to a copy of the world regulatory domain, 
the "00" that every Guix System user has been using forever.

> by being sure our wireless devices don't emit on restricted
> frenquecy between the kernel being loaded and userland (crda) setting
> the correct region.

CRDA is obsolete and only for use with the same legacy kernels.

> If we want to be sure such spourious emssions can't
> happen we need to fix the loading of 'regulatory.db' by the kernel

That's not true.  The whole point of the world regulatory domain is to 
be the subset of all other regdb entries.

Kind regards,

T G-R

Sent from a Web browser. Excuse or enjoy my brevity.




Information forwarded to guix-patches@HIDDEN:
bug#49649; Package guix-patches. Full text available.

Message received at 49649 <at> debbugs.gnu.org:


Received: (at 49649) by debbugs.gnu.org; 20 Jul 2021 21:02:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 20 17:02:34 2021
Received: from localhost ([127.0.0.1]:35524 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m5wss-0002pn-3J
	for submit <at> debbugs.gnu.org; Tue, 20 Jul 2021 17:02:34 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:51709)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brice@HIDDEN>) id 1m5wsq-0002pa-RE
 for 49649 <at> debbugs.gnu.org; Tue, 20 Jul 2021 17:02:33 -0400
Received: (Authenticated sender: brice@HIDDEN)
 by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id B078220007;
 Tue, 20 Jul 2021 21:02:26 +0000 (UTC)
From: Brice Waegeneire <brice@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#49649: [PATCH] gnu: Add regulatory.db in %base-firmware.
References: <20210719211528.22649-1-brice@HIDDEN> <87bl6xktf5.fsf@HIDDEN>
Date: Tue, 20 Jul 2021 23:02:20 +0200
In-Reply-To: <87bl6xktf5.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Tue, 20 Jul 2021 15:26:38 +0200")
Message-ID: <87r1fshf6r.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.7 (/)
X-Debbugs-Envelope-To: 49649
Cc: 49649 <at> debbugs.gnu.org
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.7 (-)

Hello Ludo=E2=80=99,

Ludovic Court=C3=A8s <ludo@HIDDEN> writes:

>> # dmesg | grep -E '(cfg80211|regulatory)'
>> [    6.282015] cfg80211: Loading compiled-in X.509 certificates for regu=
latory database
>> [    6.283766] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
>> [    6.285927] platform regulatory.0: Direct firmware load for regulator=
y.db.p7s failed with error -2
>> [    6.285931] cfg80211: loaded regulatory.db is malformed or signature =
is missing/invalid
>>
>
> Does that means that the loaded =E2=80=98regulatory.db=E2=80=99 is discar=
ded right away?
> Or does it proceed anyway?

I did more testing and you are right, in that case 'regulatory.db' isn't
loaded because it isn't signed correctly.

> In the former case, looks like we=E2=80=99ll have to do some more work.

We can either, bake 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. Or manage our own key, sign the
build database and add make the kernel load them as firmware file at
boot time, which is the usual way but would require a certain level off
work on or side.

> Could our =E2=80=98wireless-regdb=E2=80=99 build things from source, hope=
fully getting
> the exact same binary as the one provided upstream, in which case it
> could install the original signature as-is.  IOW, we=E2=80=99d be buildin=
g from
> source for the explicit purpose of making sure the upstream-provided
> =E2=80=98regulatory.bin=E2=80=99 file can be built reproducibly from this=
 source.

I didn't thought of that, I could give it a try as it should be lowest
hanging fruit.

>> I'm wondering if it's worth removing 'crda' from the default udev rules.
>
> It was added in 68ac258b5291aee33dd11a6fd0f545f81935b633 long ago, and I
> think it made sense back then.  :-)
>
> Do you think it=E2=80=99s now unnecessary because the kernel can load it =
all by
> itself?  Or does that depend on kernel build options?

After more testing, no.  We should keep it as default, it is needed if
you want to change you region from userland, with 'iw reg set' for
example.

I don't know how zelously we want to comply to radio frenquency
regulation by being sure our wireless devices don't emit on restricted
frenquecy between the kernel being loaded and userland (crda) setting
the correct region.  If we want to be sure such spourious emssions can't
happen we need to fix the loading of 'regulatory.db' by the kernel
otherwise the current setup should be good enought for most usage.

=C2=B9 https://cateee.net/lkddb/web-lkddb/CFG80211_INTERNAL_REGDB.html

Cheers,
- Brice




Information forwarded to guix-patches@HIDDEN:
bug#49649; Package guix-patches. Full text available.

Message received at 49649 <at> debbugs.gnu.org:


Received: (at 49649) by debbugs.gnu.org; 20 Jul 2021 13:26:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 20 09:26:49 2021
Received: from localhost ([127.0.0.1]:33235 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m5plp-0007Ju-0N
	for submit <at> debbugs.gnu.org; Tue, 20 Jul 2021 09:26:49 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60046)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1m5pln-0007Jj-Kx
 for 49649 <at> debbugs.gnu.org; Tue, 20 Jul 2021 09:26:48 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43020)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>)
 id 1m5plh-0008EX-LA; Tue, 20 Jul 2021 09:26:41 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=42888 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1m5plh-00073w-D0; Tue, 20 Jul 2021 09:26:41 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Brice Waegeneire <brice@HIDDEN>
Subject: Re: bug#49649: [PATCH] gnu: Add regulatory.db in %base-firmware.
References: <20210719211528.22649-1-brice@HIDDEN>
Date: Tue, 20 Jul 2021 15:26:38 +0200
In-Reply-To: <20210719211528.22649-1-brice@HIDDEN> (Brice Waegeneire's
 message of "Mon, 19 Jul 2021 23:15:28 +0200")
Message-ID: <87bl6xktf5.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: -2.3 (--)
X-Debbugs-Envelope-To: 49649
Cc: 49649 <at> debbugs.gnu.org
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: -3.3 (---)

Hi,

Brice Waegeneire <brice@HIDDEN> skribis:

> * gnu/system.scm (%base-firmware): Add 'wireless-regdb'.
> ---
>  gnu/system.scm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> Following discussion at <https://issues.guix.gnu.org/49611>, tho there is
> still an error about missing signature but now the kernel load the
> regulatory.db without the help of userspace:
>
> # dmesg | grep -E '(cfg80211|regulatory)'
> [    6.282015] cfg80211: Loading compiled-in X.509 certificates for regul=
atory database
> [    6.283766] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
> [    6.285927] platform regulatory.0: Direct firmware load for regulatory=
.db.p7s failed with error -2
> [    6.285931] cfg80211: loaded regulatory.db is malformed or signature i=
s missing/invalid
>

Does that means that the loaded =E2=80=98regulatory.db=E2=80=99 is discarde=
d right away?
Or does it proceed anyway?

In the former case, looks like we=E2=80=99ll have to do some more work.

Could our =E2=80=98wireless-regdb=E2=80=99 build things from source, hopefu=
lly getting
the exact same binary as the one provided upstream, in which case it
could install the original signature as-is.  IOW, we=E2=80=99d be building =
from
source for the explicit purpose of making sure the upstream-provided
=E2=80=98regulatory.bin=E2=80=99 file can be built reproducibly from this s=
ource.

> I'm wondering if it's worth removing 'crda' from the default udev rules.

It was added in 68ac258b5291aee33dd11a6fd0f545f81935b633 long ago, and I
think it made sense back then.  :-)

Do you think it=E2=80=99s now unnecessary because the kernel can load it al=
l by
itself?  Or does that depend on kernel build options?

Thanks,
Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#49649; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Jul 2021 21:15:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 19 17:15:40 2021
Received: from localhost ([127.0.0.1]:60486 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1m5ac0-0007qm-BB
	for submit <at> debbugs.gnu.org; Mon, 19 Jul 2021 17:15:40 -0400
Received: from lists.gnu.org ([209.51.188.17]:58374)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brice@HIDDEN>) id 1m5aby-0007qe-4L
 for submit <at> debbugs.gnu.org; Mon, 19 Jul 2021 17:15:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:59424)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <brice@HIDDEN>) id 1m5abx-0007ti-U5
 for guix-patches@HIDDEN; Mon, 19 Jul 2021 17:15:37 -0400
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:59791)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <brice@HIDDEN>) id 1m5abv-0004OB-TI
 for guix-patches@HIDDEN; Mon, 19 Jul 2021 17:15:37 -0400
Received: (Authenticated sender: brice@HIDDEN)
 by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id C2853FF806
 for <guix-patches@HIDDEN>; Mon, 19 Jul 2021 21:15:30 +0000 (UTC)
From: Brice Waegeneire <brice@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add regulatory.db in %base-firmware.
Date: Mon, 19 Jul 2021 23:15:28 +0200
Message-Id: <20210719211528.22649-1-brice@HIDDEN>
X-Mailer: git-send-email 2.32.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=217.70.183.199; envelope-from=brice@HIDDEN;
 helo=relay9-d.mail.gandi.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: submit
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.7 (--)

* gnu/system.scm (%base-firmware): Add 'wireless-regdb'.
---
 gnu/system.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Following discussion at <https://issues.guix.gnu.org/49611>, tho there is
still an error about missing signature but now the kernel load the
regulatory.db without the help of userspace:

--8<---------------cut here---------------start------------->8---
# dmesg | grep -E '(cfg80211|regulatory)'
[    6.282015] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.283766] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.285927] platform regulatory.0: Direct firmware load for regulatory.db.p7s failed with error -2
[    6.285931] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
--8<---------------cut here---------------end--------------->8---

I'm wondering if it's worth removing 'crda' from the default udev rules.

diff --git a/gnu/system.scm b/gnu/system.scm
index a7c2b1bca4..8dc51b6ec8 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -751,7 +751,8 @@ of PROVENANCE-SERVICE-TYPE to its services."
 (define %base-firmware
   ;; Firmware usable by default.
   (list ath9k-htc-firmware
-        openfwwf-firmware))
+        openfwwf-firmware
+        wireless-regdb))
 
 (define %base-packages-utils
   ;; Default set of  utilities packages.
-- 
2.32.0





Acknowledgement sent to Brice Waegeneire <brice@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#49649; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 23 Jul 2021 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.