Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paramerterize shared library values #489

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

This should not be hardcoded but checked during build since ubuntu and rehl have different dir structures
@@ -40,6 +40,13 @@ pub struct PathInitializer;

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