Skip to content

Commit a53adea

Browse files
committed
Linux 2.24 Open Source Gold Release
Upgraded to OpenSSL 3.0.13. Upgraded to Intel(R) Integrated Performance Primitives (IPP) Cryptography library version 2021.11. Upgraded to Protobuf 3.23.2. Upgraded MbedTLS to 3.5.2. Upgraded Intel DCAP Ring3 Abstraction Layer (R3AAL) library to support ConfigFS-TSM as communication channel between host and guest for TDX remote attestation. Upgraded Intel DCAP Quote Verification Enclave to integrate OpenSSL/SgxSSL 3.0.13. Upgraded new TDX attestation result “TD_RELAUNCH_ADVISED” in Intel DCAP Quote Verification Library (QVL) and Appraisal Engine. Fixed bugs. Signed-off-by: Li, Xun <[email protected]>
1 parent 05851b2 commit a53adea

File tree

84 files changed

+8703
-2553
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+8703
-2553
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
[submodule "ipp-crypto"]
1313
path = external/ippcp_internal/ipp-crypto
1414
url = https://github.com/intel/ipp-crypto.git
15-
branch = ipp-crypto_2021_7
15+
branch = ipp-crypto_2021_10_0
1616
[submodule "external/protobuf/protobuf_code"]
1717
path = external/protobuf/protobuf_code
1818
url = https://github.com/protocolbuffers/protobuf.git
19-
branch = 3.20.x
19+
branch = 23.x
2020
[submodule "external/sgx-emm/emm_src"]
2121
path = external/sgx-emm/emm_src
2222
url = https://github.com/intel/sgx-emm.git

License.txt

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,3 +1986,212 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19861986
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19871987
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19881988
SOFTWARE.
1989+
1990+
1991+
1992+
1993+
1994+
26. Abseil
1995+
The Abseil C++ library is licensed under the terms of the Apache license.
1996+
1997+
Apache License
1998+
Version 2.0, January 2004
1999+
https://www.apache.org/licenses/
2000+
2001+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
2002+
2003+
1. Definitions.
2004+
2005+
"License" shall mean the terms and conditions for use, reproduction,
2006+
and distribution as defined by Sections 1 through 9 of this document.
2007+
2008+
"Licensor" shall mean the copyright owner or entity authorized by
2009+
the copyright owner that is granting the License.
2010+
2011+
"Legal Entity" shall mean the union of the acting entity and all
2012+
other entities that control, are controlled by, or are under common
2013+
control with that entity. For the purposes of this definition,
2014+
"control" means (i) the power, direct or indirect, to cause the
2015+
direction or management of such entity, whether by contract or
2016+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
2017+
outstanding shares, or (iii) beneficial ownership of such entity.
2018+
2019+
"You" (or "Your") shall mean an individual or Legal Entity
2020+
exercising permissions granted by this License.
2021+
2022+
"Source" form shall mean the preferred form for making modifications,
2023+
including but not limited to software source code, documentation
2024+
source, and configuration files.
2025+
2026+
"Object" form shall mean any form resulting from mechanical
2027+
transformation or translation of a Source form, including but
2028+
not limited to compiled object code, generated documentation,
2029+
and conversions to other media types.
2030+
2031+
"Work" shall mean the work of authorship, whether in Source or
2032+
Object form, made available under the License, as indicated by a
2033+
copyright notice that is included in or attached to the work
2034+
(an example is provided in the Appendix below).
2035+
2036+
"Derivative Works" shall mean any work, whether in Source or Object
2037+
form, that is based on (or derived from) the Work and for which the
2038+
editorial revisions, annotations, elaborations, or other modifications
2039+
represent, as a whole, an original work of authorship. For the purposes
2040+
of this License, Derivative Works shall not include works that remain
2041+
separable from, or merely link (or bind by name) to the interfaces of,
2042+
the Work and Derivative Works thereof.
2043+
2044+
"Contribution" shall mean any work of authorship, including
2045+
the original version of the Work and any modifications or additions
2046+
to that Work or Derivative Works thereof, that is intentionally
2047+
submitted to Licensor for inclusion in the Work by the copyright owner
2048+
or by an individual or Legal Entity authorized to submit on behalf of
2049+
the copyright owner. For the purposes of this definition, "submitted"
2050+
means any form of electronic, verbal, or written communication sent
2051+
to the Licensor or its representatives, including but not limited to
2052+
communication on electronic mailing lists, source code control systems,
2053+
and issue tracking systems that are managed by, or on behalf of, the
2054+
Licensor for the purpose of discussing and improving the Work, but
2055+
excluding communication that is conspicuously marked or otherwise
2056+
designated in writing by the copyright owner as "Not a Contribution."
2057+
2058+
"Contributor" shall mean Licensor and any individual or Legal Entity
2059+
on behalf of whom a Contribution has been received by Licensor and
2060+
subsequently incorporated within the Work.
2061+
2062+
2. Grant of Copyright License. Subject to the terms and conditions of
2063+
this License, each Contributor hereby grants to You a perpetual,
2064+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2065+
copyright license to reproduce, prepare Derivative Works of,
2066+
publicly display, publicly perform, sublicense, and distribute the
2067+
Work and such Derivative Works in Source or Object form.
2068+
2069+
3. Grant of Patent License. Subject to the terms and conditions of
2070+
this License, each Contributor hereby grants to You a perpetual,
2071+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
2072+
(except as stated in this section) patent license to make, have made,
2073+
use, offer to sell, sell, import, and otherwise transfer the Work,
2074+
where such license applies only to those patent claims licensable
2075+
by such Contributor that are necessarily infringed by their
2076+
Contribution(s) alone or by combination of their Contribution(s)
2077+
with the Work to which such Contribution(s) was submitted. If You
2078+
institute patent litigation against any entity (including a
2079+
cross-claim or counterclaim in a lawsuit) alleging that the Work
2080+
or a Contribution incorporated within the Work constitutes direct
2081+
or contributory patent infringement, then any patent licenses
2082+
granted to You under this License for that Work shall terminate
2083+
as of the date such litigation is filed.
2084+
2085+
4. Redistribution. You may reproduce and distribute copies of the
2086+
Work or Derivative Works thereof in any medium, with or without
2087+
modifications, and in Source or Object form, provided that You
2088+
meet the following conditions:
2089+
2090+
(a) You must give any other recipients of the Work or
2091+
Derivative Works a copy of this License; and
2092+
2093+
(b) You must cause any modified files to carry prominent notices
2094+
stating that You changed the files; and
2095+
2096+
(c) You must retain, in the Source form of any Derivative Works
2097+
that You distribute, all copyright, patent, trademark, and
2098+
attribution notices from the Source form of the Work,
2099+
excluding those notices that do not pertain to any part of
2100+
the Derivative Works; and
2101+
2102+
(d) If the Work includes a "NOTICE" text file as part of its
2103+
distribution, then any Derivative Works that You distribute must
2104+
include a readable copy of the attribution notices contained
2105+
within such NOTICE file, excluding those notices that do not
2106+
pertain to any part of the Derivative Works, in at least one
2107+
of the following places: within a NOTICE text file distributed
2108+
as part of the Derivative Works; within the Source form or
2109+
documentation, if provided along with the Derivative Works; or,
2110+
within a display generated by the Derivative Works, if and
2111+
wherever such third-party notices normally appear. The contents
2112+
of the NOTICE file are for informational purposes only and
2113+
do not modify the License. You may add Your own attribution
2114+
notices within Derivative Works that You distribute, alongside
2115+
or as an addendum to the NOTICE text from the Work, provided
2116+
that such additional attribution notices cannot be construed
2117+
as modifying the License.
2118+
2119+
You may add Your own copyright statement to Your modifications and
2120+
may provide additional or different license terms and conditions
2121+
for use, reproduction, or distribution of Your modifications, or
2122+
for any such Derivative Works as a whole, provided Your use,
2123+
reproduction, and distribution of the Work otherwise complies with
2124+
the conditions stated in this License.
2125+
2126+
5. Submission of Contributions. Unless You explicitly state otherwise,
2127+
any Contribution intentionally submitted for inclusion in the Work
2128+
by You to the Licensor shall be under the terms and conditions of
2129+
this License, without any additional terms or conditions.
2130+
Notwithstanding the above, nothing herein shall supersede or modify
2131+
the terms of any separate license agreement you may have executed
2132+
with Licensor regarding such Contributions.
2133+
2134+
6. Trademarks. This License does not grant permission to use the trade
2135+
names, trademarks, service marks, or product names of the Licensor,
2136+
except as required for reasonable and customary use in describing the
2137+
origin of the Work and reproducing the content of the NOTICE file.
2138+
2139+
7. Disclaimer of Warranty. Unless required by applicable law or
2140+
agreed to in writing, Licensor provides the Work (and each
2141+
Contributor provides its Contributions) on an "AS IS" BASIS,
2142+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
2143+
implied, including, without limitation, any warranties or conditions
2144+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
2145+
PARTICULAR PURPOSE. You are solely responsible for determining the
2146+
appropriateness of using or redistributing the Work and assume any
2147+
risks associated with Your exercise of permissions under this License.
2148+
2149+
8. Limitation of Liability. In no event and under no legal theory,
2150+
whether in tort (including negligence), contract, or otherwise,
2151+
unless required by applicable law (such as deliberate and grossly
2152+
negligent acts) or agreed to in writing, shall any Contributor be
2153+
liable to You for damages, including any direct, indirect, special,
2154+
incidental, or consequential damages of any character arising as a
2155+
result of this License or out of the use or inability to use the
2156+
Work (including but not limited to damages for loss of goodwill,
2157+
work stoppage, computer failure or malfunction, or any and all
2158+
other commercial damages or losses), even if such Contributor
2159+
has been advised of the possibility of such damages.
2160+
2161+
9. Accepting Warranty or Additional Liability. While redistributing
2162+
the Work or Derivative Works thereof, You may choose to offer,
2163+
and charge a fee for, acceptance of support, warranty, indemnity,
2164+
or other liability obligations and/or rights consistent with this
2165+
License. However, in accepting such obligations, You may act only
2166+
on Your own behalf and on Your sole responsibility, not on behalf
2167+
of any other Contributor, and only if You agree to indemnify,
2168+
defend, and hold each Contributor harmless for any liability
2169+
incurred by, or claims asserted against, such Contributor by reason
2170+
of your accepting any such warranty or additional liability.
2171+
2172+
END OF TERMS AND CONDITIONS
2173+
2174+
APPENDIX: How to apply the Apache License to your work.
2175+
2176+
To apply the Apache License to your work, attach the following
2177+
boilerplate notice, with the fields enclosed by brackets "[]"
2178+
replaced with your own identifying information. (Don't include
2179+
the brackets!) The text should be enclosed in the appropriate
2180+
comment syntax for the file format. We also recommend that a
2181+
file or class name and description of purpose be included on the
2182+
same "printed page" as the copyright notice for easier
2183+
identification within third-party archives.
2184+
2185+
Copyright [yyyy] [name of copyright owner]
2186+
2187+
Licensed under the Apache License, Version 2.0 (the "License");
2188+
you may not use this file except in compliance with the License.
2189+
You may obtain a copy of the License at
2190+
2191+
https://www.apache.org/licenses/LICENSE-2.0
2192+
2193+
Unless required by applicable law or agreed to in writing, software
2194+
distributed under the License is distributed on an "AS IS" BASIS,
2195+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2196+
See the License for the specific language governing permissions and
2197+
limitations under the License.

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ preparation:
5454
./external/dcap_source/QuoteVerification/prepare_sgxssl.sh nobuild
5555
cd external/openmp/openmp_code && git apply ../0001-Enable-OpenMP-in-SGX.patch >/dev/null 2>&1 || git apply ../0001-Enable-OpenMP-in-SGX.patch --check -R
5656
cd external/protobuf/protobuf_code && git apply ../sgx_protobuf.patch >/dev/null 2>&1 || git apply ../sgx_protobuf.patch --check -R
57+
cd external/protobuf/protobuf_code && git submodule update --init --recursive && cd third_party/abseil-cpp && git apply ../../../sgx_abseil.patch>/dev/null 2>&1 || git apply ../../../sgx_abseil.patch --check -R
5758
./external/sgx-emm/create_symlink.sh
5859
cd external/mbedtls/mbedtls_code && git apply ../sgx_mbedtls.patch >/dev/null 2>&1 || git apply ../sgx_mbedtls.patch --check -R
5960
cd external/cbor && cp -r libcbor sgx_libcbor

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ Install the Intel(R) SGX SDK
355355
* On Debian 10:
356356
```
357357
$ sudo apt-get install build-essential python3
358-
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3
358+
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
359359
```
360360
* On Ubuntu 20.04, Ubuntu 22.04 and Ubuntu 23.10:
361361
```

SampleCode/ProtobufSGXDemo/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,15 @@ SGX_COMMON_FLAGS += -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type \
7373
-Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow \
7474
-Wcast-align -Wcast-qual -Wconversion -Wredundant-decls
7575
SGX_COMMON_CFLAGS := $(SGX_COMMON_FLAGS) -Wjump-misses-init -Wstrict-prototypes -Wunsuffixed-float-constants
76-
SGX_COMMON_CXXFLAGS := $(SGX_COMMON_FLAGS) -Wnon-virtual-dtor -std=c++11
76+
SGX_COMMON_CXXFLAGS := $(SGX_COMMON_FLAGS) -Wnon-virtual-dtor
77+
78+
CC_VERSION := $(shell $(CC) -dumpversion)
79+
CC_NO_LESS_THAN_11 := $(shell expr $(CC_VERSION) \>\= "11")
80+
ifeq ($(CC_NO_LESS_THAN_11), 1)
81+
SGX_COMMON_CXXFLAGS += -std=c++17
82+
else
83+
SGX_COMMON_CXXFLAGS += -std=c++14
84+
endif
7785

7886
######## App Settings ########
7987

0 commit comments

Comments
 (0)