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

aws-ecs-1: enable SELinux capability #1009

Merged
merged 2 commits into from
Aug 6, 2020
Merged
Changes from 1 commit
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
6 changes: 6 additions & 0 deletions sources/api/ecs-settings-applier/src/ecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ struct ECSConfig {

#[serde(rename = "TaskIAMRoleEnabledForNetworkHost")]
task_iam_role_enabled_for_network_host: bool,

#[serde(rename = "SELinuxCapable")]
samuelkarp marked this conversation as resolved.
Show resolved Hide resolved
selinux_capable: bool,
}

// Returning a Result from main makes it print a Debug representation of the error, but with Snafu
Expand Down Expand Up @@ -76,6 +79,9 @@ fn run() -> Result<()> {
// Task role support is always enabled
task_iam_role_enabled: true,
task_iam_role_enabled_for_network_host: true,

// SELinux is always available
selinux_capable: true,
..Default::default()
};
if let Some(os) = settings.os {
Expand Down