aws / amazon-ecs-init

Amazon Elastic Container Service RPM
http://aws.amazon.com/ecs
Apache License 2.0
200 stars 118 forks source link

ecs-anywhere-install: allow sandboxed apt installations #417

Closed otterley closed 3 years ago

otterley commented 3 years ago

Ensure the temporary directories into which package artifacts are downloaded are world-readable, thereby allowing the unprivileged _apt user to open the packages and allow for a sandboxed install.

This fix eliminates warnings such as:

N: Download is performed unsandboxed as root as file '/tmp/tmp.ZkW0dDLEph/amazon-ecs-init-latest.amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)

Licensing

This contribution is under the terms of the Apache 2.0 License:

otterley commented 3 years ago

@sparrc Updated per our discussion, please re-review

sparrc commented 3 years ago

lgtm, I also confirmed that both +r and +X are necessary to get rid of this error message, thanks @otterley !