Skip to content

Conversation

@dbrowne
Copy link

@dbrowne dbrowne commented Mar 20, 2024

add the following constants
QUOTING_ENCLAVE
PROVISIONING_CERTIFICATE_ENCLAVE
ID_ENCLAVE

Motivation

Library names should not be hardcoded. The paths are not universal across Linux distributions.

Future Work

dbrowne added 2 commits March 19, 2024 22:26
This should not be hardcoded but checked during build since ubuntu and rehl have different dir structures

static PATH_INITIALIZER: Lazy<Mutex<Option<PathInitializer>>> = Lazy::new(|| Mutex::new(None));

const QUOTING_ENCLAVE: &str = "/usr/lib/x86_64-linux-gnu/libsgx_qe3.signed.so.1";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I read the following from the motivation

Library names should not be hardcoded. The paths are not universal across Linux distributions.

but I'm not quite seeing how this address that. The paths are still hardcoded and aren't handling the different linux distributions.

I'm not advocating for logic to handle the different linux distributions here either. As it currently stands, it may be difficult to find the time to review a change such as that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants