aws / aws/containers-roadmap

[ECS] [feature-request]: SELinux official support

Open
#1,888 2 comments 11 reactions 0 assignees View on GitHub
ECS Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**
What do you want us to build?
ECS Container support for SELinux profiles and configuration without overly permissive requirements (privileged / super-privileged).

Docker supports [running containers with security options](https://docs.docker.com/engine/reference/run/#security-configuration)
ECS supports setting these options via the [container definition's DockerSecurityOptions](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html)

But
Once SELinux has been enabled in the kernel and docker daemon, it’s unclear how to run a container without using privileged mode, (which subverts the whole purpose of using SELinux in the first place.)

Even when using the most permissive SELinux profiles, the overlay storage driver itself seems to require [SELinux to be set to permissive mode (essentially disabling SELinux)](https://github.com/docker/for-linux/issues/791#issuecomment-563231208).

Contributor guide

Open the contributing guide

Research direction

Start with the ECS ContainerDefinition DockerSecurityOptions documentation and the linked Docker security-configuration and overlay storage-driver discussion. Determine the supported SELinux profile and configuration requirements for ECS containers without privileged mode; the issue does not define an implementation entry point or a concrete acceptance test.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, linux
Domain
cloud, devops, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.