From d6ded02fbde685cc32b1b20ee315558ff7c880ae Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 19 Sep 2023 02:27:31 +0000 Subject: automatic import of kunpengsecl --- .gitignore | 1 + kunpengsecl-fix-incorrect-file-permissions.patch | 25 ++++++ kunpengsecl.spec | 100 +++-------------------- sources | 4 +- 4 files changed, 41 insertions(+), 89 deletions(-) create mode 100644 kunpengsecl-fix-incorrect-file-permissions.patch diff --git a/.gitignore b/.gitignore index a654a21..39040dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /kunpengsecl-v2.0.2.tar.gz /vendor.tar.gz +/kunpengsecl-v1.1.2.tar.gz diff --git a/kunpengsecl-fix-incorrect-file-permissions.patch b/kunpengsecl-fix-incorrect-file-permissions.patch new file mode 100644 index 0000000..13d7f36 --- /dev/null +++ b/kunpengsecl-fix-incorrect-file-permissions.patch @@ -0,0 +1,25 @@ +--- a/attestation/rac/Makefile 2023-04-26 15:02:23.708323227 +0800 ++++ b/attestation/rac/Makefile 2023-04-26 15:02:59.028495761 +0800 +@@ -27,8 +27,8 @@ + + install: build + mkdir -p $(DESTDIR)$(ETCTAR)/rac $(DESTDIR)$(ETCTAR)/rahub $(DESTDIR)$(ETCTAR)/default_test $(DESTDIR)$(SHARETAR)/rac $(DESTDIR)$(SHARETAR)/rahub $(DESTDIR)$(DOCTAR)/rac $(DESTDIR)$(DOCTAR)/rahub $(DESTDIR)$(BINTAR) +- install -m 555 pkg/raagent $(DESTDIR)$(BINTAR) +- install -m 555 pkg/rahub $(DESTDIR)$(BINTAR) ++ install -m 755 pkg/raagent $(DESTDIR)$(BINTAR) ++ install -m 755 pkg/rahub $(DESTDIR)$(BINTAR) + ### install -m 555 pkg/tbprovisioner $(DESTDIR)$(BINTAR) + install -m 644 $(RACPATH)/config.yaml $(DESTDIR)$(ETCTAR)/rac + install -m 644 $(HUBPATH)/config.yaml $(DESTDIR)$(ETCTAR)/rahub + +--- a/attestation/ras/Makefile 2023-04-26 15:02:39.488400314 +0800 ++++ b/attestation/ras/Makefile 2023-04-26 15:03:13.016564097 +0800 +@@ -29,7 +29,7 @@ + + install: build + mkdir -p $(DESTDIR)$(ETCTAR)/ras $(DESTDIR)$(SHARETAR)/ras $(DESTDIR)$(DOCTAR)/ras $(DESTDIR)$(BINTAR) +- install -m 555 $(PKGPATH)/ras $(DESTDIR)$(BINTAR) ++ install -m 755 $(PKGPATH)/ras $(DESTDIR)$(BINTAR) + install -m 644 $(RASPATH)/config.yaml $(DESTDIR)$(ETCTAR)/ras + install -m 555 $(SCRPATH)/prepare-database-env.sh $(DESTDIR)$(SHARETAR)/ras + install -m 555 $(SCRPATH)/clear-database.sh $(DESTDIR)$(SHARETAR)/ras diff --git a/kunpengsecl.spec b/kunpengsecl.spec index 23bc33e..2d739f9 100644 --- a/kunpengsecl.spec +++ b/kunpengsecl.spec @@ -1,41 +1,34 @@ %global name kunpengsecl -%global version 2.0.2 +%global version 1.1.2 %undefine _missing_build_ids_terminate_build Name: %{name} Version: %{version} -Release: 1%{?dist} +Release: 3%{?dist} Summary: A remote attestation security software components running on Kunpeng processors. Summary(zh_CN): 一款运行于鲲鹏处理器上的远程证明安全软件组件 License: MulanPSL-2.0 URL: https://gitee.com/openeuler/kunpengsecl Source0: %{name}-v%{version}.tar.gz Source1: vendor.tar.gz +Patch0: kunpengsecl-fix-incorrect-file-permissions.patch BuildRequires: gettext make golang -BuildRequires: protobuf-compiler openssl-devel -BuildRequires: cjson-devel -%ifarch aarch64 -BuildRequires: itrustee_sdk-devel -%endif +BuildRequires: protobuf-compiler compat-openssl11-devel -Packager: leezhenxiang, WangLi, Wucaijun, gwei3 +Requires: compat-openssl11 +Packager: WangLi, Wucaijun, gwei3 %description -This is %{name} project, including rac, ras, rahub, qcaserver, attester and tas packages. +This is %{name} project, including rac, ras and rahub packages. %package rac Summary: the rac package. -Requires: openssl -%ifarch aarch64 -Requires: itrustee_sdk -%endif %description rac This is the rac rpm package, which is used to install the client of the program. %package ras Summary: the ras package. -Requires: %{name}-attester %description ras This is the ras rpm package, which is used to install the server of the program. @@ -46,36 +39,9 @@ Summary: the rahub package. %description rahub This is the rahub rpm package, which is used to cascade clients. -%package qcaserver -Summary: the qcaserver package. - -%description qcaserver -This is the qcaserver rpm package, which is used to invoke libqca. - -%package attester -Summary: the attester package. -Requires: cjson -Requires: openssl - -%description attester -This is the attester rpm package, which is used to verify ta reports. - -%package tas -Summary: the tas package. -Requires: %{name}-attester - -%description tas -This is the tas rpm package, which is used to sign ak cert. - -%package devel -Summary: the develop package. -Requires: %{name}-attester - -%description devel -This is the devel rpm package, which provide supporting header file. - %prep %setup -q -c -a 1 +%patch0 -p1 %build make build @@ -103,9 +69,6 @@ make install DESTDIR=%{buildroot} %{_docdir}/attestation/rac/README.md %{_docdir}/attestation/rac/README.en.md %{_docdir}/attestation/rac/LICENSE -%ifarch aarch64 -%{_libdir}/libkta.so -%endif %files ras %{_bindir}/ras @@ -128,49 +91,12 @@ make install DESTDIR=%{buildroot} %{_docdir}/attestation/rahub/README.en.md %{_docdir}/attestation/rahub/LICENSE -%files qcaserver -%{_bindir}/qcaserver -%{_sysconfdir}/attestation/qcaserver/config.yaml -%{_datadir}/attestation/qcaserver/prepare-qcaconf-env.sh -%{_docdir}/attestation/qcaserver/README.md -%{_docdir}/attestation/qcaserver/README.en.md -%{_docdir}/attestation/qcaserver/LICENSE -%{_datadir}/attestation/qcaserver/libqca.so -%{_datadir}/attestation/qcaserver/libteec.so - -%files attester -%{_bindir}/attester -%{_sysconfdir}/attestation/attester/config.yaml -%{_datadir}/attestation/attester/prepare-attesterconf-env.sh -%{_docdir}/attestation/attester/README.md -%{_docdir}/attestation/attester/README.en.md -%{_docdir}/attestation/attester/LICENSE -%{_libdir}/libteeverifier.so - -%files tas -%{_bindir}/tas -%{_bindir}/*.pem -%{_sysconfdir}/attestation/tas/config.yaml -%{_datadir}/attestation/tas/prepare-tasconf-env.sh -%{_docdir}/attestation/tas/README.md -%{_docdir}/attestation/tas/README.en.md -%{_docdir}/attestation/tas/LICENSE - -%files devel -%{_includedir}/teeverifier.h - %changelog -* Thu Jul 18 2023 leezhenxiang <1172294056@qq.com> - 2.0.2-1 -- update to 2.0.2 -* Thu Mar 23 2023 leezhenxiang <1172294056@qq.com> - 2.0.1-1 -- update to 2.0.1 -- add devel package -* Thu Mar 23 2023 leezhenxiang <1172294056@qq.com> - 2.0.0-1 -- update to 2.0.0 -- add qcaserver, attester, and tas packages -- add BuildRequires itrustee_sdk-devel, cjson-devel and Requires itrustee_sdk, cjson -- modify makefile to adapt to different architectures -- specify the build requires in rac and attester package +* Wed Apr 26 2023 Xiaoya Huang - 1.1.2-3 +- Fix incorrect file permissions +* Fri Feb 10 2023 gwei3 <11015100@qq.com> - 1.1.2-2 +- update BuildRequires & Requires to replace openssl* with compat-openssl11* to adapt to latest Mainline +- remove redundent clean label in spec file * Thu Sep 15 2022 gwei3 <11015100@qq.com> - 1.1.2-1 - update to 1.1.2 - add slice length checks to avoid buffer overflow while extracting and verifying diff --git a/sources b/sources index 8eeff3d..10c6776 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -32ca41a4793939d45f0be7b3f076ce8f kunpengsecl-v2.0.2.tar.gz -b0de8187e9177cb59f2ad9a5045c18f2 vendor.tar.gz +a2cc8a2aeff3e91ca3df41842bcfa682 kunpengsecl-v1.1.2.tar.gz +c3495072d0baefc23a0c23a6f17c52f6 vendor.tar.gz -- cgit v1.2.3