gramineproject / graphene

Graphene / Graphene-SGX - a library OS for Linux multi-process applications, with Intel SGX support
https://grapheneproject.io
GNU Lesser General Public License v3.0
771 stars 260 forks source link

[Pal/Linux-SGX] Refactor `init_trusted_files()` #2607

Closed dimakuv closed 3 years ago

dimakuv commented 3 years ago

Description of the changes

This function is split into several functions: initializing trusted files, initializing allowed files, and registering one file with normalized path. This commit is in preparation for SGX allowed/trusted/protected files to be specified in TOML arrays.

How to test this PR?

Jenkins.


This change is Reviewable

dimakuv commented 3 years ago

Jenkins, retest Jenkins-18.04 please (sendfile09 LTP test timed out on slave-constantine, I have a feeling that this Jenkins worker is sloooow, this is not the first time tests timeout on this machine).