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

models: add lockdown default configuration files #1530

Merged
merged 2 commits into from
Apr 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SECURITY_GUIDANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ Modifications to the running kernel could bypass or subvert these mechanisms.
Bottlerocket enables the Lockdown security module and offers settings to choose from one of three modes.

The first mode, "none", effectively disables the protection.
This is the default in today's [variants](variants/) of Bottlerocket, for compatibility with existing deployments.
This is the default in older [variants](variants/) of Bottlerocket, for compatibility with existing deployments.

The second mode, "integrity", blocks most ways to overwrite the kernel's memory and modify its code.
This will become the default in future variants.
This is the default in newer variants.
Enabling this mode will prevent unsigned kernel modules from being loaded.

The third mode, "confidentiality", stops most ways of reading the kernel's memory from userspace.
Expand Down
3 changes: 0 additions & 3 deletions sources/models/shared-defaults/defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ affected-services = ["chronyd"]

# Kernel

[settings.kernel]
lockdown = "none"

[services.sysctl]
configuration-files = []
restart-commands = ["/usr/bin/corndog sysctl"]
Expand Down
3 changes: 3 additions & 0 deletions sources/models/shared-defaults/lockdown-none.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Kernel
[settings.kernel]
lockdown = "none"