Graphene / Graphene-SGX - a library OS for Linux multi-process applications, with Intel SGX support
GNU Lesser General Public License v3.0
771
stars
260
forks
source link
[Examples] pytorch: Fix permission denied error for python local libs… #2655
Closed
sahason closed 3 years ago
… and result.txt in Graphene-SGX
Signed-off-by: Sonali Saha sonali.saha@intel.com
Description of the changes
Fix permission denied error for python local libs. In manifest file python local libs paths are not populated correctly, used
installed_base
instead ofprefix
forvars
parameter while getting the path usingsysconfig.getpath()
. Please check https://github.com/python/cpython/blob/ebe7e6d86cf8f54d449d49866698d7f4c700cc7c/Lib/sysconfig.py#L28Fix accessing
result.txt
is denied as the file is not trusted/allowed. Increased thread numbers and enclave size to run the application successfully.Fixes #2643 Fixes #2630
How to test this PR?
Build and run pytorch example according to the instructions in https://github.com/oscarlab/graphene/blob/master/Examples/pytorch/README.md Example application should run without error.
This change is