浏览代码

[Pal/Linux-SGX] pal-sgx-sign: Remove unnecessary copy of manifest

Previously, there was a copy of the input (template) manifest to an output
(final SGX) manifest. This copy is unnecessary since the file is overwritten
later anyway. This commit removes this copy and also the shutil import.
Jia Zhang 6 年之前
父节点
当前提交
7a12bce7c9
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      Pal/src/host/Linux-SGX/signer/pal-sgx-sign

+ 0 - 3
Pal/src/host/Linux-SGX/signer/pal-sgx-sign

@@ -4,7 +4,6 @@ import argparse
 import datetime
 import hashlib
 import os
-import shutil
 import struct
 import subprocess
 import sys
@@ -851,8 +850,6 @@ def main_sign(args):
             enclave_heap_min = 0
             manifest['sgx.static_address'] = '0'
 
-    # Add manifest at the top
-    shutil.copy2(args['manifest'], args['output'])
     output_manifest(args['output'], manifest, manifest_layout)
 
     memory_areas = [