Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8C53C433EF for ; Fri, 1 Oct 2021 14:35:11 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 075FA61A50 for ; Fri, 1 Oct 2021 14:35:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 075FA61A50 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=buildroot.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=buildroot.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id AC83684429; Fri, 1 Oct 2021 14:35:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t2mIQccqDpJ5; Fri, 1 Oct 2021 14:35:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 996A884438; Fri, 1 Oct 2021 14:35:08 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 203361BF424 for ; Fri, 1 Oct 2021 14:35:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0F07F843E0 for ; Fri, 1 Oct 2021 14:35:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4qSOBwinbmKF for ; Fri, 1 Oct 2021 14:35:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from sonic311-23.consmr.mail.gq1.yahoo.com (sonic311-23.consmr.mail.gq1.yahoo.com [98.137.65.204]) by smtp1.osuosl.org (Postfix) with ESMTPS id D43FD84348 for ; Fri, 1 Oct 2021 14:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1633098905; bh=bLudkZBQYuC8trurtkBpKpFGDxguIBrA+mCf1FgOeWA=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=MIvETYHMaDj0fXrhLTQXii3vER4dfSNoR+EDEAU8fVm/KOJiwQaRpUI5Poiqf+18Bd1R/J+ygD2ImZGh3500oI5bEvdcC1gGgt6wParWVlEXPwRi2KU1JrB0FEtvevOGDWQl/qauShIq0l+jQEAoYVZgwnIHStAZfE+4XpUBJZyfYBISVd856kFSyg4CpV2EPguS6ouq7DsAYtxCMnQxEu+k4ynhEkyLugeIChONUJmYSqPWsFFO1b3oEWdCQysPTvALb0U5SI62Iv2SkCCDX7nBaBirGFMYrtBfb+MY90wXzwFh+6dGqLrnsPXZReOv2+u6+z7AEJzI41SaLcj0AQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1633098905; bh=GesLUDKRwDWKCDYJ/AcRDpgzw5gNFraLRK6dH/fqwv6=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=UJvjlAt7uWfSoIT/o3VFdp5MyXC1QhPT7/moLbpv/ii0LpAIPyw1WgOhufDlzigLqAcI5XAickqvxli6zceqlq2Jx1gNxoIrV0OTTVRyirvtTYOEuh7opkR8jywezrAp6mOOq6rU6OFEQKelsFHMcBIH74gc45YqAoM3ExDrHgAE4i16erDv/3IJTno6Wjxc1plVnVeDDoIOYC8ey4mEHom2WycD2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0t__9X98uCKdqLorvQi44pU5xEXbS8l38uzNVFuuuUO8fOJZeHs37f TXZDGwVMurAVAAAu33c3MgKuG4z2kG6GKC2Fu2unHsytBeg1H0S5BHQVnrB8_9EghyBQY6M4H7gi 4hfOeK0ek0kN4ZAG..9W8qjXUsU2FFT6_zGjGtz87T4iQ63_OFh.wyd1R3BfipSnWNvsbbnwCs10 wtv6k9rDypPM1VhlTeqDtEstc9vkBvDkbyLuRx.9uZ.k- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Fri, 1 Oct 2021 14:35:05 +0000 Date: Fri, 1 Oct 2021 14:35:03 +0000 (UTC) To: "buildroot@buildroot.org" Message-ID: <212347867.858114.1633098903235@mail.yahoo.com> In-Reply-To: <20211001015433.11176-1-tallubko@yahoo.com> References: <20211001015433.11176-1-tallubko.ref@yahoo.com> <20211001015433.11176-1-tallubko@yahoo.com> MIME-Version: 1.0 X-Mailer: WebService/1.1.19076 YMailNorrin Subject: Re: [Buildroot] [PATCH 1/1] package/chipsec: new package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tal Lubko via buildroot Reply-To: Tal Lubko Cc: Thomas Petazzoni Content-Type: multipart/mixed; boundary="===============4808680569135577606==" Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" --===============4808680569135577606== Content-Type: multipart/alternative; boundary="----=_Part_858113_704319023.1633098903231" ------=_Part_858113_704319023.1633098903231 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I've submitted a patch which adds new package - chipsec, which=C2=A0is a fr= amework for analyzing the security of PC platforms. I haven't got a reply for this patch so I've got a feeling I've done someth= ing wrong.Have I? Thanks,Tal On Friday, October 1, 2021, 04:54:58 AM GMT+3, Tal Lubko via buildroot = wrote: =20 =20 Signed-off-by: Tal Lubko --- package/Config.in=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 1 + ...ed-modules-instead-of-source-modules.patch | 27 +++++++++++++++++++ package/chipsec/Config.in=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 | 19 +++++++++++++ package/chipsec/chipsec.hash=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 3 +++ package/chipsec/chipsec.mk=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 | 23 ++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 package/chipsec/0001-search-for-compiled-modules-instea= d-of-source-modules.patch create mode 100644 package/chipsec/Config.in create mode 100644 package/chipsec/chipsec.hash create mode 100644 package/chipsec/chipsec.mk diff --git a/package/Config.in b/package/Config.in index 2f83c87582..ce73e2db72 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2010,6 +2010,7 @@ endif endmenu =20 menu "Security" +=C2=A0=C2=A0=C2=A0 source "package/chipsec/Config.in" =C2=A0=C2=A0=C2=A0 source "package/libapparmor/Config.in" =C2=A0=C2=A0=C2=A0 source "package/libselinux/Config.in" =C2=A0=C2=A0=C2=A0 source "package/libsemanage/Config.in" diff --git a/package/chipsec/0001-search-for-compiled-modules-instead-of-so= urce-modules.patch b/package/chipsec/0001-search-for-compiled-modules-inste= ad-of-source-modules.patch new file mode 100644 index 0000000000..08a87bf3cc --- /dev/null +++ b/package/chipsec/0001-search-for-compiled-modules-instead-of-source-mo= dules.patch @@ -0,0 +1,27 @@ +From fd67e6878daec7abeef649bb687464c832a04ee6 Mon Sep 17 00:00:00 2001 +From: Tal Lubko +Date: Wed, 22 Sep 2021 15:50:46 +0300 +Subject: [PATCH] search for compiled modules instead of source code module= s + +change chipsec_main to search for compiled modules (PYCs) instead of +source code modules (PYs). +--- + chipsec_main.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chipsec_main.py b/chipsec_main.py +index 1aa46ea..11cf9c6 100755 +--- a/chipsec_main.py ++++ b/chipsec_main.py +@@ -215,7 +215,7 @@ class ChipsecMain: +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 while len(subdirs)= > 0: +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 subd= irs.pop() +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 for modx in mod_fnames: +-=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if fnmatch.fnmatc= h( modx, '*.py' ) and not fnmatch.fnmatch( modx, '__init__.py' ): ++=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if fnmatch.fnmatc= h( modx, '*.pyc' ) and not fnmatch.fnmatch( modx, '__init__.pyc' ): +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 self= .load_module( os.path.join( dirname, modx ), self._module_argv ) +=C2=A0 =C2=A0 =C2=A0 =C2=A0 self.Loaded_Modules.sort() +=20 +--=20 +2.17.1 + diff --git a/package/chipsec/Config.in b/package/chipsec/Config.in new file mode 100644 index 0000000000..3da41c14a6 --- /dev/null +++ b/package/chipsec/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_CHIPSEC +=C2=A0=C2=A0=C2=A0 bool "chipsec" +=C2=A0=C2=A0=C2=A0 depends on BR2_LINUX_KERNEL +=C2=A0=C2=A0=C2=A0 depends on BR2_PACKAGE_PYTHON3 +=C2=A0=C2=A0=C2=A0 depends on BR2_i386 || BR2_x86_64 +=C2=A0=C2=A0=C2=A0 select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime + +=C2=A0=C2=A0=C2=A0 help +=C2=A0=C2=A0=C2=A0 =C2=A0 CHIPSEC is a framework for analyzing the securit= y of PC +=C2=A0=C2=A0=C2=A0 =C2=A0 platforms including hardware, system firmware (B= IOS/UEFI), +=C2=A0=C2=A0=C2=A0 =C2=A0 and platform components.=20 + +=C2=A0=C2=A0=C2=A0 =C2=A0 https://github.com/chipsec/chipsec + +comment "chipsec needs a Linux kernel to be built" +=C2=A0=C2=A0=C2=A0 depends on !BR2_LINUX_KERNEL + +comment "chipsec depends on python3" +=C2=A0=C2=A0=C2=A0 depends on !BR2_PACKAGE_PYTHON3 diff --git a/package/chipsec/chipsec.hash b/package/chipsec/chipsec.hash new file mode 100644 index 0000000000..344eb4fab8 --- /dev/null +++ b/package/chipsec/chipsec.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 0470326e00f66c91d751e9827d9e0050e3e4ac5b2bc7a9943a76381beda58162=C2= =A0 chipsec-1.7.1.tar.gz +sha256 4c2ca80f4d3675a53a216a64d67e7b411a81a6e958defd248c6f1ecf44dc6607=C2= =A0 COPYING diff --git a/package/chipsec/chipsec.mk b/package/chipsec/chipsec.mk new file mode 100644 index 0000000000..96d96176cc --- /dev/null +++ b/package/chipsec/chipsec.mk @@ -0,0 +1,23 @@ +##########################################################################= ###### +# +# chipsec +# +##########################################################################= ###### + +CHIPSEC_VERSION =3D 1.7.1 +CHIPSEC_SITE =3D $(call github,chipsec,chipsec,$(CHIPSEC_VERSION)) +CHIPSEC_SETUP_TYPE =3D setuptools +CHIPSEC_LICENSE =3D GPL-2.0 +CHIPSEC_LICENSE_FILES =3D LICENSE +CHIPSEC_DEPENDENCIES =3D linux +CHIPSEC_ENV =3D KSRC=3D$(LINUX_DIR) +CHIPSEC_BUILD_OPTS =3D build_ext -i + +CHIPSEC_POST_INSTALL_TARGET_HOOKS +=3D CHIPSEC_INSTALL_LKM + +define CHIPSEC_INSTALL_LKM +=C2=A0=C2=A0=C2=A0 $(INSTALL) -m 0644 -D $(@D)/chipsec/helper/linux/chipse= c.ko \ +=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 $(TARGET_DIR)/usr/lib/python$(PYTHON= 3_VERSION_MAJOR)/site-packages/chipsec/helper/linux +endef + +$(eval $(python-package)) --=20 2.17.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot =20 ------=_Part_858113_704319023.1633098903231 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi

I've su= bmitted a patch which adds new package - chipsec, which is a fra= mework for analyzing the security of PC platforms.

I haven't got a reply for this patch so I've got a feeling I'= ve done something wrong.
Have I= ?

Thanks,
Tal=

=20
=20
On Friday, October 1, 2021, 04:54:58 AM GMT+3, Tal Lubk= o via buildroot <buildroot@buildroot.org> wrote:


Signed-off-by: Tal Lubko <tallubko@= yahoo.com>
---
= package/Config.in                &n= bsp;           |  1 +
...ed-modules-instead-of-source-modules.patch | 27 +++++++++++++++++++=
package/chipsec/Config.in      &= nbsp;             | 19 +++++++++++++
package/chipsec/chipsec.hash       =           |  3 +++
package/chipsec/chipsec.mk             = ;       | 23 ++++++++++++++++
5 f= iles changed, 73 insertions(+)
create mode 10064= 4 package/chipsec/0001-search-for-compiled-modules-instead-of-source-module= s.patch
create mode 100644 package/chipsec/Confi= g.in
create mode 100644 package/chipsec/chipsec.= hash
create mode 100644 package/chipsec/chipsec.= mk

diff --git a/packag= e/Config.in b/package/Config.in
index 2f83c87582.= .ce73e2db72 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2= 010,6 +2010,7 @@ endif
endmenu

menu "Security"
+    source "package/chipsec/Config.in"
    source "package/libapparmor/Config.in"
    source "package/libselinux/Config.= in"
    source "package/libsemana= ge/Config.in"
diff --git a/package/chipsec/0001-s= earch-for-compiled-modules-instead-of-source-modules.patch b/package/chipse= c/0001-search-for-compiled-modules-instead-of-source-modules.patch
new file mode 100644
index 0000= 000000..08a87bf3cc
--- /dev/null
+++ b/package/chipsec/0001-search-for-compiled-modules-instead-of= -source-modules.patch
@@ -0,0 +1,27 @@
<= div dir=3D"ltr">+From fd67e6878daec7abeef649bb687464c832a04ee6 Mon Sep 17 0= 0:00:00 2001
+From: Tal Lubko <tallubko@yahoo.co= m>
+Date: Wed, 22 Sep 2021 15:50:46 +0300<= br>
+Subject: [PATCH] search for compiled modules ins= tead of source code modules
+
+change chipsec_main to search for compiled modules (PYCs) instead= of
+source code modules (PYs).
+---
+ chipsec_main.py | 2 +-
<= div dir=3D"ltr">+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/chipsec_main.py b/= chipsec_main.py
+index 1aa46ea..11cf9c6 100755
+--- a/chipsec_main.py
++= ++ b/chipsec_main.py
+@@ -215,7 +215,7 @@ class C= hipsecMain:
+          &= nbsp;     while len(subdirs) > 0:
+=                     subd= irs.pop()
+          &nb= sp; for modx in mod_fnames:
+-    &nbs= p;           if fnmatch.fnmatch( modx, '*.py' ) an= d not fnmatch.fnmatch( modx, '__init__.py' ):
++&= nbsp;               if fnmatch.fnmatch( = modx, '*.pyc' ) and not fnmatch.fnmatch( modx, '__init__.pyc' ):
<= div dir=3D"ltr">+                &n= bsp;   self.load_module( os.path.join( dirname, modx ), self._module_= argv )
+        self.Loaded_= Modules.sort()
+
+-- <= br>
+2.17.1
+
diff --git a/package/chipsec/Config.in b/package/chipsec/Confi= g.in
new file mode 100644
index 0000000000..3da41c14a6
--- /dev/null
=
+++ b/package/chipsec/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_CHIPSE= C
+    bool "chipsec"
+    depends on BR2_LINUX_KERNEL
+    depends on BR2_PACKAGE_PYTHON3
+    depends on BR2_i386 || BR2_x86_64
+    select BR2_PACKAGE_PYTHON_SETUPTOOL= S # runtime
+
+ &n= bsp;  help
+      CHIPSE= C is a framework for analyzing the security of PC
+      platforms including hardware, system firmware (= BIOS/UEFI),
+      and platfo= rm components.
+
+&nbs= p;     https://github.com/chipsec/chipsec
+
+comment "chipsec needs a Li= nux kernel to be built"
+    depen= ds on !BR2_LINUX_KERNEL
+
+comment "chipsec depends on python3"
+ &= nbsp;  depends on !BR2_PACKAGE_PYTHON3
diff = --git a/package/chipsec/chipsec.hash b/package/chipsec/chipsec.hash
new file mode 100644
index 000= 0000000..344eb4fab8
--- /dev/null
+++ b/package/chipsec/chipsec.hash
@@ = -0,0 +1,3 @@
+# Locally calculated
+sha256 0470326e00f66c91d751e9827d9e0050e3e4ac5b2bc7a9943a76381= beda58162  chipsec-1.7.1.tar.gz
+sha256 4c2c= a80f4d3675a53a216a64d67e7b411a81a6e958defd248c6f1ecf44dc6607  COPYING<= br>
diff --git a/package/chipsec/chipsec.mk b/package= /chipsec/chipsec.mk
new file mode 100644
index 0000000000..96d96176cc
--= - /dev/null
+++ b/package/chipsec/chipsec.mk
<= /div>
@@ -0,0 +1,23 @@
+#########= #######################################################################
=
+#
+# chipsec
+#
+###############################= #################################################
+
+CHIPSEC_VERSION =3D 1.7.1
+CHIPSEC_SITE =3D $(call github,chipsec,chipsec,$(CHIPSEC_VERSION)= )
+CHIPSEC_SETUP_TYPE =3D setuptools
+CHIPSEC_LICENSE =3D GPL-2.0
+CHIPS= EC_LICENSE_FILES =3D LICENSE
+CHIPSEC_DEPENDENCIE= S =3D linux
+CHIPSEC_ENV =3D KSRC=3D$(LINUX_DIR)<= br>
+CHIPSEC_BUILD_OPTS =3D build_ext -i
+
+CHIPSEC_POST_INSTALL_TARGET_HOOK= S +=3D CHIPSEC_INSTALL_LKM
+
+define CHIPSEC_INSTALL_LKM
+  &n= bsp; $(INSTALL) -m 0644 -D $(@D)/chipsec/helper/linux/chipsec.ko \
+        $(TARGET_DIR)/usr/= lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/chipsec/helper/linux
+endef
+
+$(eval $(python-package))
--
=
2.17.1

_______________________________________________
buildroot mailing list
------=_Part_858113_704319023.1633098903231-- --===============4808680569135577606== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot --===============4808680569135577606==--