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

specify mode for tmpfs mounts #2473

Merged
merged 1 commit into from Oct 3, 2022

Conversation

bcressey
Copy link
Contributor

@bcressey bcressey commented Oct 3, 2022

Issue number:

N/A

Description of changes:
Specify the mode for all tmpfs mounts. In practice, the mode didn't really matter because the SELinux label would enforce the expected permissions, but the "wide open" default mode for tmpfs mounts could trigger an alert from scanning tools.

Testing done:
Verified that aws-ecs-1 and aws-k8s-1.22 quick tests passed:

 NAME                            TYPE       STATE       PASSED   SKIPPED   FAILED
 aarch64-aws-ecs-1               Resource   completed
 aarch64-aws-ecs-1-instances     Resource   completed
 aarch64-aws-ecs-1-test          Test       passed      1        0         0
 aarch64-aws-k8s-122             Resource   completed
 aarch64-aws-k8s-122-instances   Resource   completed
 aarch64-aws-k8s-122-test        Test       passed      1        6441	   0

Confirmed that each mount had the expected permissions.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

In practice, the mode didn't really matter because the SELinux label
would enforce the expected permissions, but the "wide open" default
mode for tmpfs mounts could trigger an alert from scanning tools.

Signed-off-by: Ben Cressey <bcressey@amazon.com>
Copy link
Contributor

@stmcginnis stmcginnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question mostly out of curiosity, but looks good to me. Matches what I've confirmed for settings with the pending credential provider work.

packages/release/etc-cni.mount Show resolved Hide resolved
@bcressey bcressey merged commit a90cc5f into bottlerocket-os:develop Oct 3, 2022
@bcressey bcressey deleted the tmpfs-mount-mode branch October 3, 2022 23:40
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.

None yet

3 participants