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

Make JAILER_BASE_DIR dependend on execution root #481

Merged
merged 5 commits into from
Nov 24, 2023

Conversation

olethanh
Copy link
Collaborator

it was hardcoded before on /var/lib/aleph so it wasn't respecting the proper user settings and was failling if the user didn't have the correct permission for this folder and was producing warning

Copy link

  • The diff includes a change to the JAILER_BASE_DIRECTORY constant, which is a significant change in the codebase.
  • The change also involves modifying the namespace_path property method, which could impact the VM's behavior and might introduce bugs if not handled correctly.
  • The reviewer should have deep understanding of the project architecture to ensure that this change does not adversely affect other components.

@github-actions github-actions bot added the BLACK This PR has critical implications and must be reviewed by a senior engineer. label Nov 22, 2023
@hoh hoh requested a review from nesitor November 22, 2023 11:29
@olethanh
Copy link
Collaborator Author

olethanh commented Nov 22, 2023 via email

@olethanh
Copy link
Collaborator Author

olethanh commented Nov 22, 2023 via email

@olethanh
Copy link
Collaborator Author

olethanh commented Nov 23, 2023

After discussion with @nesitor did the modification with the settings approach

it was hardcoded before on /var/lib/aleph so it wasn't respecting the proper user settings
and was failling if the user didn't have the correct permission for this folder and was producing warning
@hoh hoh force-pushed the olethanh-jail-respect-execution-root-settings branch from e8785cd to 08ba8aa Compare November 24, 2023 11:38
@hoh hoh added this to the 0.3.1 Bugfix release milestone Nov 24, 2023
@hoh hoh merged commit d8a4077 into main Nov 24, 2023
18 checks passed
@hoh hoh deleted the olethanh-jail-respect-execution-root-settings branch November 24, 2023 12:53
hoh pushed a commit that referenced this pull request Mar 12, 2024
Make JAILER_BASE_DIR dependend on execution root

it was hardcoded before on /var/lib/aleph so it wasn't respecting the proper user settings
and was failling if the user didn't have the correct permission for this folder and was producing warning

Pass the settings to MicroVM instead of importing it so this module can stay separate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BLACK This PR has critical implications and must be reviewed by a senior engineer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants