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
|
||||
Version: 0.1.0
|
||||
Release: 35
|
||||
Release: 36
|
||||
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
|
||||
URL: https://gitee.com/openeuler/secGear
|
||||
Source0: https://gitee.com/openeuler/secGear/repository/archive/v%{version}.tar.gz
|
||||
Source1: vendor.tar.gz
|
||||
|
||||
Patch0: 0001-add-README.cn.md.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
|
||||
Patch69: 0070-sign-tool-add-invalid-param-verify.patch
|
||||
Patch70: 0071-adapt-report-with-request-key.patch
|
||||
Patch71: backport-init-attestation.patch
|
||||
|
||||
BuildRequires: gcc python automake autoconf libtool
|
||||
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
|
||||
%else
|
||||
BUildRequires: itrustee_sdk itrustee_sdk-devel
|
||||
BuildRequires: rust cargo rust-packaging virtCCA_sdk-devel virtCCA_sdk
|
||||
%endif
|
||||
|
||||
Requires: rsyslog openssl-libs
|
||||
@ -117,10 +120,27 @@ Summary: simulation package files for %{name}
|
||||
Requires: %{name}%{?isa} = %{version}-%{release}
|
||||
%description sim
|
||||
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
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-v%{version} -p1
|
||||
%ifnarch x86_64
|
||||
cd service/attestation/attestation-agent/
|
||||
tar xf %{SOURCE1}
|
||||
%endif
|
||||
|
||||
%build
|
||||
source ./environment
|
||||
@ -131,6 +151,18 @@ make
|
||||
%else
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug -DENCLAVE=GP
|
||||
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
|
||||
|
||||
%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/gp/*.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
|
||||
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
|
||||
@ -205,12 +239,21 @@ popd
|
||||
%license License/LICENSE
|
||||
%{_libdir}/libsecgearsim.so
|
||||
%{_libdir}/libsgxsim_0.so
|
||||
%else
|
||||
%files aa
|
||||
%{_libdir}/libattestation_agent.so
|
||||
|
||||
%files aa-devel
|
||||
%{_includedir}/rust_attestation_agent.h
|
||||
%endif
|
||||
|
||||
%post
|
||||
systemctl restart rsyslog
|
||||
|
||||
%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
|
||||
- synchronous features
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user