From patchwork Thu Sep 23 15:05:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1531747 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PigVR9bc; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=iTKtgB6f; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4HFdnM490nz9sW5 for ; Fri, 24 Sep 2021 01:07:35 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=IiUItUfaCeJD5Px8mOtuGVAlS/Vo5AR/Z3IcOmjRS5Q=; b=PigVR9bcueCflK YmBVfT+FpafAfwWFai9haItHYuiUAwfyWHSgjd/6eHyKjGNt3DFK0MiAMGH/3bCST9DuwCphq/1c7 t214O42r2i1utJIpyL5qYjOVTqS4evxHWGxrfd6cnD2H8ZPE5V9lqoR6uAwaa3Wzgsx2GqfzCiiuU VaLhOr1qEQVSoL24DtOujLmO6nRMDl2ln73I9PAqj7nMHe2qsSjyBkYGf+Phu3diE5KPkJK8OYRm0 JMzzsxutAEYFOV42tqCFn/U7SCFhU0R4QWZg40XPNzehbtNYVuXJCc99L5zRtnAfiMZEIwLTV7EUw Oknuf/qcrpxcMyZInD0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTQIh-00BzwU-0z; Thu, 23 Sep 2021 15:06:15 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:191:4433::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTQHo-00BzRF-Ez for hostap@lists.infradead.org; Thu, 23 Sep 2021 15:05:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=hPbP0zkdZJxfiHFVA+xPM8fGis9iyuA+T/c006i+aK4=; t=1632409516; x=1633619116; b=iTKtgB6ffvrVlxa1Rv39TLtBeHQTrAW+iU8qUd6TJJTo04+iAg3pvxvFfhO6iHzNR2GbFFEZbcI xtXdNF/hB/ldcP629hBUJhZ5b46i1ymeU4UDJcFFYnw02X7U9hLEYcaqDU/DoghoGYpXBbOrwby9D s1TlGCbqzRXFOMbfpcjPYJThZC6bnOAAe9Jh818mA7qPEl9eO1Cmoun+UWgFCjUHYxTQVwLuwi6T2 vKVwrvr1kNVzUS8kRqBaXpokPBXNGV93DV5k5IhaYoJ+zlJxKp6P52etAKs9Ol6dzYIuxLmHfQq1Y e4nWWAgNobprw+H7sIwP1AXOmcCf7aRtCRWA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95-RC2) (envelope-from ) id 1mTQHh-00AmlK-0r; Thu, 23 Sep 2021 17:05:13 +0200 From: Johannes Berg To: hostap@lists.infradead.org Cc: Johannes Berg Subject: [PATCH] tests: hwsim: add regulatory database to VMs Date: Thu, 23 Sep 2021 17:05:10 +0200 Message-Id: <1632409510-I00424699b114de739f156727c5b86ff4cc3c6a5a@changeid> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210923_080520_665252_81E69BDA X-CRM114-Status: GOOD ( 13.29 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Johannes Berg Add a common well-known regulatory database to the test VMs during runs to remove one thing to have correct in the host. Signed-off-by: Johannes Berg --- tests/hwsim/vm/inside.sh | 2 ++ tests/hwsim/vm/regdb/regulatory.db | Bin 0 -> 4036 bytes tests/hwsim/vm/regdb/regulatory.db.p7s | Bin 0 -> 11 [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Johannes Berg Add a common well-known regulatory database to the test VMs during runs to remove one thing to have correct in the host. Signed-off-by: Johannes Berg --- tests/hwsim/vm/inside.sh | 2 ++ tests/hwsim/vm/regdb/regulatory.db | Bin 0 -> 4036 bytes tests/hwsim/vm/regdb/regulatory.db.p7s | Bin 0 -> 1182 bytes 3 files changed, 2 insertions(+) create mode 100644 tests/hwsim/vm/regdb/regulatory.db create mode 100644 tests/hwsim/vm/regdb/regulatory.db.p7s GIT binary patch literal 1182 zcmXqLVwuIpsnzDu_MMlJooPW6OSeH2OFI)IqanWmFB@k$Y57IP8L6oT z3gWzm=7t6aW`>p~2F9jQ68uJnhUNyAhDJ~U?An?bm5_}Gx`?@nk)HwR0xqT|Mn;CM z4v*((v{*8Kvb>(A<7gqerfz9-p=#ZPnvA>o_BXFbTFkG>3OdBBrCXQwMQ*cDfkO0^ z=|;AN-PY0^;v(6JN5Z?OiOKv`xysG?GefZD_o+ahi>{Kl1YEjq{wrJgH$hi|TVv`b z-B%qmc3cco{17bvktzSB+w95l8WZ@}nElF7E({O*cINW^TCJPX#jdY+skgqbs$Y7# z;kbd>rQmmO*2q0K{AjjlPV%wT=z7)CjD@c**D=J*io2m8VN}kpDU>E>R{VTAi=+9* zjYZmD7HTTgOsnM9zHsB-i5&aMzmLAF2oe;PuKM;UW9IYUZelHuk1u@o;F8AX=M0{IyM6Wwa{mIf7OHQT7tSL%AoG*M>*R=9_*YmGe6b-ztep`IAGVBw- z!1vkYwQ2f*qmwdu%Ti1qxCzl8GMutX;+>(KaknSwU#Nh zc=g}&Q_k>OCH%D!(HApbsVILsU}Hb?y9H@0#VSP%n;5qNQ^_V^qBc;#nzqnVFjAsl zkZB+RPtu&shRAuqKn5YhYRE6nYh-9(ZfIg?W@K(?6lI`~kYzDcVo^wm)H^wIZ!|-h zyo*ZZ%}o>kZF<=qRJN>Y>;2ywx2rcQB1auCakDfrGBgOQ{#Cp~%agfs{|P`t9`I^SFIK7GE8JA2;+a~@sDgL)U_0^E`!<5(0>bL!8>R_r%55F|6$2?kZonmRm3!Ph~rE_1a vC{~5BNC!nso7%2yq20X1H1~dZiLcnRn_ne&mardQx|4rX;qObf4^9IB_&U~k literal 0 HcmV?d00001 diff --git a/tests/hwsim/vm/inside.sh b/tests/hwsim/vm/inside.sh index 9d4a933fe729..7d10609fbd24 100755 --- a/tests/hwsim/vm/inside.sh +++ b/tests/hwsim/vm/inside.sh @@ -38,6 +38,8 @@ TELNET=$(sed 's/.*TELNET=\([^ ]*\) .*/\1/' /proc/cmdline) ARGS=$(sed 's/.*ARGS=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline) LOGDIR=$(sed 's/.*LOGDIR=\([^ ]*\)\( \|$\).*/\1/' /proc/cmdline) +mount --bind "$TESTDIR/vm/regdb/" /lib/firmware + # create /dev entries we need mknod -m 660 /dev/ttyS0 c 4 64 mknod -m 666 /dev/ptmx c 5 2 diff --git a/tests/hwsim/vm/regdb/regulatory.db b/tests/hwsim/vm/regdb/regulatory.db new file mode 100644 index 0000000000000000000000000000000000000000..e0db5f8be0f4d5d3f0279864594855d73de461d7 GIT binary patch literal 4036 zcmZvde~esJ702(r-`SsPeQYLGL9~;$5+a5*qSl~c-~67Pd9!cl&5xY{LJh%9F@n{A z!K86j46!OgOoJ0?KnfE`AlatDu*Qa#q!?I`-H@t{Zm_|LMOlSt6G+&^bMC$K_PxDXaC9ctWfJL`XJ`K#e zEn4f~Xxc?8oyN22EH=_P`p%=9F3`J(d(sv3(jFGmRV=6H@cT4rqywy`>$Kjcr-L^$ zE*3I*9L^Mx%9PN}RIr?>;>Z@Clp|ZF$HV^Y96cTUCYQld zj@EMp{4*EOoAmP~r1F$IUqh;p#@<2}Hy3hvxRA$*LJ{3Uh2B0rY_DT~p@AC;ZT!7h z#*tzb-C_+NDb}%AY#>$2B2yy$QU!OGs<^9E!$yhnlxP;S9=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o0|@=bL>tz(3AH{_S(k5omikOt@9kPUe} zv^C_4x0g+@n@>4*nk0W8z%-9rj~go$qPuSCT(dzB`9P>c-!x;hPCbO{+|RW(7k_8<{`YmCMRh!^k!`1~- z>N;Edt?J|I3B9jLM^uLYf{Yg6q{$AH-x-a#&dKV*@AYYz;U-JB~P%p=Ldw=@! z+w!E^ulqFhKWD!6?98{~Z*`Q-^j?Qya~9svId2K)wi%fd@6)EKNyl#5Sbp=u+j2@i HF2sKU30BCv literal 0 HcmV?d00001 diff --git a/tests/hwsim/vm/regdb/regulatory.db.p7s b/tests/hwsim/vm/regdb/regulatory.db.p7s new file mode 100644 index 0000000000000000000000000000000000000000..730aef4f364c55791a56566ff585b444823343bb