* [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB
@ 2018-08-10 10:55 Stanislaw Gruszka
2018-08-13 10:09 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Stanislaw Gruszka @ 2018-08-10 10:55 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes, Stanislaw Gruszka
According to kconfig-language.txt conditional dependency should be
expressed 2 times:
bool "foo" if BAR
default y if BAR
Indeed, without additional if expression we always build with
CFG80211_REQUIRE_SIGNED_REGDB even when CFG80211_CERTIFICATION_ONUS
is not set.
Fixes: 90a53e4432b1 ("cfg80211: implement regdb signature checking")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
net/wireless/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/wireless/Kconfig b/net/wireless/Kconfig
index 4172204..bd63b73 100644
--- a/net/wireless/Kconfig
+++ b/net/wireless/Kconfig
@@ -89,7 +89,7 @@ config CFG80211_CERTIFICATION_ONUS
config CFG80211_REQUIRE_SIGNED_REGDB
bool "require regdb signature" if CFG80211_CERTIFICATION_ONUS
- default y
+ default y if CFG80211_CERTIFICATION_ONUS
select SYSTEM_DATA_VERIFICATION
help
Require that in addition to the "regulatory.db" file a
--
1.7.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB
2018-08-10 10:55 [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB Stanislaw Gruszka
@ 2018-08-13 10:09 ` Johannes Berg
2018-08-13 11:44 ` Stanislaw Gruszka
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2018-08-13 10:09 UTC (permalink / raw)
To: Stanislaw Gruszka, linux-wireless
On Fri, 2018-08-10 at 12:55 +0200, Stanislaw Gruszka wrote:
> According to kconfig-language.txt conditional dependency should be
> expressed 2 times:
>
> bool "foo" if BAR
> default y if BAR
>
> Indeed, without additional if expression we always build with
> CFG80211_REQUIRE_SIGNED_REGDB even when CFG80211_CERTIFICATION_ONUS
> is not set.
That's the intent. If you do set CERTIFICATION_ONUS, then you can
disable this (presumably because you have external OS image verification
mechanisms, or similar).
If you don't set CERTIFICATION_ONUS, this should always be set.
Perhaps it should be renamed to CFG80211_REQUIRE_REGDB_SIGNATURE or so,
which might be clearer? And a case has been made before for adding
CFG80211_FIRMWARE_REGDB_SUPPORT that controls the whole feature, but
this patch is clearly wrong.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB
2018-08-13 10:09 ` Johannes Berg
@ 2018-08-13 11:44 ` Stanislaw Gruszka
2018-08-13 11:47 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Stanislaw Gruszka @ 2018-08-13 11:44 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Mon, Aug 13, 2018 at 12:09:13PM +0200, Johannes Berg wrote:
> On Fri, 2018-08-10 at 12:55 +0200, Stanislaw Gruszka wrote:
> > According to kconfig-language.txt conditional dependency should be
> > expressed 2 times:
> >
> > bool "foo" if BAR
> > default y if BAR
> >
> > Indeed, without additional if expression we always build with
> > CFG80211_REQUIRE_SIGNED_REGDB even when CFG80211_CERTIFICATION_ONUS
> > is not set.
Err, I meant "is set"
> That's the intent. If you do set CERTIFICATION_ONUS, then you can
> disable this (presumably because you have external OS image verification
> mechanisms, or similar).
>
> If you don't set CERTIFICATION_ONUS, this should always be set.
Patch allow to build without CFG80211_REQUIRE_SIGNED_REGDB. This option
is not configurable (allways y) no matter of CERTIFICATION_ONUS setting.
With the patch and with CERTIFICATION_ONUS,
CFG80211_REQUIRE_SIGNED_REGDB is still default y, but can be set to n
during "make oldconfig".
> Perhaps it should be renamed to CFG80211_REQUIRE_REGDB_SIGNATURE or so,
> which might be clearer? And a case has been made before for adding
> CFG80211_FIRMWARE_REGDB_SUPPORT that controls the whole feature, but
> this patch is clearly wrong.
Patch is fine, there is just typo in the changelog :-)
Cheers
Stanislaw
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB
2018-08-13 11:44 ` Stanislaw Gruszka
@ 2018-08-13 11:47 ` Johannes Berg
2018-08-13 12:17 ` Stanislaw Gruszka
0 siblings, 1 reply; 5+ messages in thread
From: Johannes Berg @ 2018-08-13 11:47 UTC (permalink / raw)
To: Stanislaw Gruszka; +Cc: linux-wireless
On Mon, 2018-08-13 at 13:44 +0200, Stanislaw Gruszka wrote:
> On Mon, Aug 13, 2018 at 12:09:13PM +0200, Johannes Berg wrote:
> > On Fri, 2018-08-10 at 12:55 +0200, Stanislaw Gruszka wrote:
> > > According to kconfig-language.txt conditional dependency should be
> > > expressed 2 times:
> > >
> > > bool "foo" if BAR
> > > default y if BAR
> > >
> > > Indeed, without additional if expression we always build with
> > > CFG80211_REQUIRE_SIGNED_REGDB even when CFG80211_CERTIFICATION_ONUS
> > > is not set.
>
> Err, I meant "is set"
Ok, but still?
> > That's the intent. If you do set CERTIFICATION_ONUS, then you can
> > disable this (presumably because you have external OS image verification
> > mechanisms, or similar).
> >
> > If you don't set CERTIFICATION_ONUS, this should always be set.
>
> Patch allow to build without CFG80211_REQUIRE_SIGNED_REGDB. This option
> is not configurable (allways y) no matter of CERTIFICATION_ONUS setting.
How so? The default is y, but if CERTIFICATION_ONUS is set, you should
be able to change it.
> With the patch and with CERTIFICATION_ONUS,
> CFG80211_REQUIRE_SIGNED_REGDB is still default y, but can be set to n
> during "make oldconfig".
I don't think your patch changes anything there since it just changes
when the default is applied.
> > Perhaps it should be renamed to CFG80211_REQUIRE_REGDB_SIGNATURE or so,
> > which might be clearer? And a case has been made before for adding
> > CFG80211_FIRMWARE_REGDB_SUPPORT that controls the whole feature, but
> > this patch is clearly wrong.
>
> Patch is fine, there is just typo in the changelog :-)
Disagree, if anything should be changed, it should be changed to
default y if !CERTIFICATION_ONUS
but I prefer the way it works now, since it means setting certification
onus won't immediately change this setting.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB
2018-08-13 11:47 ` Johannes Berg
@ 2018-08-13 12:17 ` Stanislaw Gruszka
0 siblings, 0 replies; 5+ messages in thread
From: Stanislaw Gruszka @ 2018-08-13 12:17 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Mon, Aug 13, 2018 at 01:47:53PM +0200, Johannes Berg wrote:
> Disagree, if anything should be changed, it should be changed to
>
> default y if !CERTIFICATION_ONUS
>
> but I prefer the way it works now, since it means setting certification
> onus won't immediately change this setting.
Ok, this works as supposed. Not sure why it did not work for me
before, maybe I just confused config options.
Regards
Stanislaw
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-08-13 14:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-10 10:55 [PATCH] cfg80211: allow to build without CFG80211_REQUIRE_SIGNED_REGDB Stanislaw Gruszka
2018-08-13 10:09 ` Johannes Berg
2018-08-13 11:44 ` Stanislaw Gruszka
2018-08-13 11:47 ` Johannes Berg
2018-08-13 12:17 ` Stanislaw Gruszka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).