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

SONiC namespace remap HLD #1444

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maipbui
Copy link
Contributor

@maipbui maipbui commented Aug 16, 2023

SONiC containers are run with root user privileges by default. User IDs (UIDs) and Group IDs (GIDs) inside a Docker container directly correspond to those on the host system. Specifically, the root user (UID 0) inside the container has the same privileges as the root user on the host.

This lack of separation can lead to further security risks, as a process that breaks out of the container with root privileges can have full control over the host system.

To mitigate these risks, this HLD implements the enablement of the user namespace remapping feature on SONiC containers. User namespace remapping allows mapping the root user in a container to a less-privileged user on the Docker host system, thereby enhancing security by limiting the potential damage of a container breakout.

Repo PR title State
sonic-buildimage [database] enable userns-remap and make redis process runs as non-root user GitHub issue/pull request detail

Signed-off-by: Mai Bui <maibui@microsoft.com>
@maipbui maipbui requested review from qiluo-msft and Yarden-Z August 16, 2023 22:05
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.

1 participant