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

SPECS/aws-nitro-enclaves-cli.spec: Do not mangle shebangs #554

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

clupuishere
Copy link
Member

The package builder used for Amazon Linux 2023 mangles shebangs in the packaged scripts, but the new paths may not exist. For example, in the case of hello.sh, the shebang is rewritten from #!/bin/sh to #!/usr/bin/sh, but the latter path does not exist. This has the effect of preventing the "Hello Enclave" enclave from being instantiated. Therefore we disable shebang mangling for the entire package.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The package builder used for Amazon Linux 2023 mangles shebangs in the
packaged scripts, but the new paths may not exist for scripts whose
target environment is not Amazon Linux based. For example, in the case
of `hello.sh` which is meant to be run in a Docker container, the
shebang is rewritten from `#!/bin/sh` to `#!/usr/bin/sh`, but the latter
path does not exist. This has the effect of preventing the "Hello
Enclave" enclave from being instantiated.  Therefore we disable shebang
mangling for the scripts from the examples.

Signed-off-by: Costin Lupu <[email protected]>
@clupuishere clupuishere merged commit 06d98e3 into main Nov 14, 2023
12 checks passed
@clupuishere clupuishere deleted the dont-mangle branch November 14, 2023 16:01
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.

3 participants