init attestation
This commit is contained in:
parent
36b2298fbd
commit
e3eae3d816
1665
backport-init-attestation.patch
Normal file
1665
backport-init-attestation.patch
Normal file
File diff suppressed because it is too large
Load Diff
45
secGear.spec
45
secGear.spec
@ -1,6 +1,6 @@
|
|||||||
Name: secGear
|
Name: secGear
|
||||||
Version: 0.1.0
|
Version: 0.1.0
|
||||||
Release: 35
|
Release: 36
|
||||||
Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features
|
Summary: secGear is an SDK to develop confidential computing apps based on hardware enclave features
|
||||||
|
|
||||||
|
|
||||||
@ -8,6 +8,7 @@ Group: OS Security
|
|||||||
License: Mulan PSL v2
|
License: Mulan PSL v2
|
||||||
URL: https://gitee.com/openeuler/secGear
|
URL: https://gitee.com/openeuler/secGear
|
||||||
Source0: https://gitee.com/openeuler/secGear/repository/archive/v%{version}.tar.gz
|
Source0: https://gitee.com/openeuler/secGear/repository/archive/v%{version}.tar.gz
|
||||||
|
Source1: vendor.tar.gz
|
||||||
|
|
||||||
Patch0: 0001-add-README.cn.md.patch
|
Patch0: 0001-add-README.cn.md.patch
|
||||||
Patch1: 0002-it-is-better-to-define-enum-from-0-rather-than-1.patch
|
Patch1: 0002-it-is-better-to-define-enum-from-0-rather-than-1.patch
|
||||||
@ -80,6 +81,7 @@ Patch67: 0068-bugfix-when-input-empty-hash.patch
|
|||||||
Patch68: 0069-adapt-sign-tool-to-pass-API_LEVEL.patch
|
Patch68: 0069-adapt-sign-tool-to-pass-API_LEVEL.patch
|
||||||
Patch69: 0070-sign-tool-add-invalid-param-verify.patch
|
Patch69: 0070-sign-tool-add-invalid-param-verify.patch
|
||||||
Patch70: 0071-adapt-report-with-request-key.patch
|
Patch70: 0071-adapt-report-with-request-key.patch
|
||||||
|
Patch71: backport-init-attestation.patch
|
||||||
|
|
||||||
BuildRequires: gcc python automake autoconf libtool
|
BuildRequires: gcc python automake autoconf libtool
|
||||||
BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++ openssl-libs openssl-devel
|
BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++ openssl-libs openssl-devel
|
||||||
@ -87,6 +89,7 @@ BUildRequires: glibc glibc-devel cmake ocaml-dune rpm gcc-c++ openssl-libs opens
|
|||||||
BUildRequires: sgxsdk libsgx-launch libsgx-urts intel-sgx-ssl-devel
|
BUildRequires: sgxsdk libsgx-launch libsgx-urts intel-sgx-ssl-devel
|
||||||
%else
|
%else
|
||||||
BUildRequires: itrustee_sdk itrustee_sdk-devel
|
BUildRequires: itrustee_sdk itrustee_sdk-devel
|
||||||
|
BuildRequires: rust cargo rust-packaging virtCCA_sdk-devel virtCCA_sdk
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Requires: rsyslog openssl-libs
|
Requires: rsyslog openssl-libs
|
||||||
@ -117,10 +120,27 @@ Summary: simulation package files for %{name}
|
|||||||
Requires: %{name}%{?isa} = %{version}-%{release}
|
Requires: %{name}%{?isa} = %{version}-%{release}
|
||||||
%description sim
|
%description sim
|
||||||
The %{name}-sim is package contains simulation libraries for developing applications
|
The %{name}-sim is package contains simulation libraries for developing applications
|
||||||
|
%else
|
||||||
|
%package aa
|
||||||
|
Summary: Attestation agent for %{name}
|
||||||
|
%description aa
|
||||||
|
The %{name}-aa is package contains attestation agent
|
||||||
|
|
||||||
|
%package aa-devel
|
||||||
|
Summary: Development files for %{name} attestation agent
|
||||||
|
Requires: %{name}%{?isa}-aa = %{version}-%{release}
|
||||||
|
%description aa-devel
|
||||||
|
The %{name}-aa-devel is package contains Header file for attestation agent
|
||||||
|
|
||||||
|
%define _cargo /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 /usr/bin/cargo
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-v%{version} -p1
|
%autosetup -n %{name}-v%{version} -p1
|
||||||
|
%ifnarch x86_64
|
||||||
|
cd service/attestation/attestation-agent/
|
||||||
|
tar xf %{SOURCE1}
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
source ./environment
|
source ./environment
|
||||||
@ -131,6 +151,18 @@ make
|
|||||||
%else
|
%else
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DENCLAVE=GP
|
cmake -DCMAKE_BUILD_TYPE=Debug -DENCLAVE=GP
|
||||||
make
|
make
|
||||||
|
|
||||||
|
cd service/attestation/attestation-agent/
|
||||||
|
mkdir -p .cargo
|
||||||
|
touch .cargo/config
|
||||||
|
cat << EOF >> ./.cargo/config
|
||||||
|
[source.crates-io]
|
||||||
|
replace-with = "vendored-sources"
|
||||||
|
|
||||||
|
[source.vendored-sources]
|
||||||
|
directory = "vendor"
|
||||||
|
EOF
|
||||||
|
cargo build --features virtcca --lib --release
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -160,6 +192,8 @@ install -pm 644 inc/host_inc/gp/*.edl %{buildroot}/%{_includedir}/secGear
|
|||||||
install -pm 644 inc/enclave_inc/*.h %{buildroot}/%{_includedir}/secGear
|
install -pm 644 inc/enclave_inc/*.h %{buildroot}/%{_includedir}/secGear
|
||||||
install -pm 644 inc/enclave_inc/gp/*.h %{buildroot}/%{_includedir}/secGear
|
install -pm 644 inc/enclave_inc/gp/*.h %{buildroot}/%{_includedir}/secGear
|
||||||
install -pm 644 inc/enclave_inc/gp/itrustee/*.h %{buildroot}/%{_includedir}/secGear
|
install -pm 644 inc/enclave_inc/gp/itrustee/*.h %{buildroot}/%{_includedir}/secGear
|
||||||
|
install -pm 644 service/attestation/attestation-agent/rust_attestation_agent.h %{buildroot}/%{_includedir}
|
||||||
|
install -pm 644 service/attestation/attestation-agent/target/release/deps/libattestation_agent.so %{buildroot}/%{_libdir}/libattestation_agent.so
|
||||||
%endif
|
%endif
|
||||||
install -pm 644 component/remote_attest/ra_report/sg_ra_report.h %{buildroot}/%{_includedir}/secGear
|
install -pm 644 component/remote_attest/ra_report/sg_ra_report.h %{buildroot}/%{_includedir}/secGear
|
||||||
install -pm 644 component/remote_attest/ra_verify/sg_ra_report_verify.h %{buildroot}/%{_includedir}/secGear
|
install -pm 644 component/remote_attest/ra_verify/sg_ra_report_verify.h %{buildroot}/%{_includedir}/secGear
|
||||||
@ -205,12 +239,21 @@ popd
|
|||||||
%license License/LICENSE
|
%license License/LICENSE
|
||||||
%{_libdir}/libsecgearsim.so
|
%{_libdir}/libsecgearsim.so
|
||||||
%{_libdir}/libsgxsim_0.so
|
%{_libdir}/libsgxsim_0.so
|
||||||
|
%else
|
||||||
|
%files aa
|
||||||
|
%{_libdir}/libattestation_agent.so
|
||||||
|
|
||||||
|
%files aa-devel
|
||||||
|
%{_includedir}/rust_attestation_agent.h
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
systemctl restart rsyslog
|
systemctl restart rsyslog
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 28 2024 zhengxiaoxiao <zhengxiaoxiao2@huawei.com> - 0.1.0-36
|
||||||
|
- add init-attestation.patch
|
||||||
|
|
||||||
* Mon Sep 18 2023 wangqingsan<wangqingsan@huawei.com> - 0.1.0-35
|
* Mon Sep 18 2023 wangqingsan<wangqingsan@huawei.com> - 0.1.0-35
|
||||||
- synchronous features
|
- synchronous features
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user