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

Reduce usage of special environment variables #2849

Merged
merged 5 commits into from
Apr 10, 2023

Conversation

sporksmith
Copy link
Contributor

Removes the environment variables SHADOW_DISABLE_SHIM_SYSCALL, SHADOW_SHM_PROCESS_BLK, and SHADOW_SHM_HOST_BLK.

As part of removing SHADOW_DISABLE_SHIM_SYSCALL, this also removes the experimental option use_shim_syscall_handler, and removes the redundant shadow-side syscall handlers.

Progress on #2848

@github-actions github-actions bot added Component: Documentation In-repository documentation, under docs/ Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable labels Apr 6, 2023
@sporksmith sporksmith added this to the Code health and maintenance milestone Apr 6, 2023
docs/shadow_config_spec.md Show resolved Hide resolved
src/lib/shadow-shim-helper-rs/src/shim_shmem.rs Outdated Show resolved Hide resolved
Instead of migrating this from an env variable to shared memory, we can
just remove it. This optimization has been working reliably.
There's no sense in maintaining these since they should always be
handled in the shim. We don't want to unexpectedly end up calling one of
these at runtime, since behavior may diverge from the shim-side
handling down the road.
@sporksmith sporksmith merged commit 3343e74 into shadow:main Apr 10, 2023
21 checks passed
@sporksmith sporksmith deleted the use-less-env branch April 10, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation In-repository documentation, under docs/ Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants