| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| log.Warnln("Could not change file mode recursively of directory /opt:", err) | ||
| } | ||
| // fix permissions of the tmp directory for better AWS parity | ||
| if err := ChmodRecursively("/tmp", 0700); err != nil { |
There was a problem hiding this comment.
Should we do that for the directory only assuming that in ephemeral environments /tmp should be empty 🤔 ?
I guess that's mostly relevant for custom worker scenarios.
Sorry, something went wrong.
There was a problem hiding this comment.
I think in custom worker scenarios we might want to clear the /tmp directory anyway?
Sorry, something went wrong.
There was a problem hiding this comment.
I fully agree 👍 . Assuming an empty /tmp directory seems fair.
Hence, it doesn't matter too much.
Sorry, something went wrong.
There was a problem hiding this comment.
FYI custom worker currently cleans /tmp, /var/task and /opt
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation
Addresses localstack/localstack#8897
Changes
Unrelated changes:
Testing
Run the test tests.aws.services.lambda_.test_lambda.TestLambdaLayerBehavior.test_layer_permissions in https://github.com/localstack/localstack-ext/pull/2165 against this new Go binary.