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

[docker_image_ctl.j2] Share UTS namespace with host OS #4169

Merged
merged 1 commit into from
Feb 26, 2020

Commits on Feb 19, 2020

  1. [docker_image_ctl.j2] Share UTS namespace with host OS

    Instead of updating hostname manualy on Config DB hostname change,
    simply share containers UTS namespace with host OS.
    Ideally, instead of setting `--uts=host` for every container in SONiC,
    this setting can be set per container if feature requires.
    One behaviour change is introduced in this commit, when `--privileged`
    or `--cap-add=CAP_SYS_ADMIN` and `--uts=host` are combined, container
    has privilege to change host OS and every other container hostname.
    Such privilege should be fixed by limiting containers capabilities.
    
    Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
    Stepan Blyschak committed Feb 19, 2020
    Configuration menu
    Copy the full SHA
    b14a833 View commit details
    Browse the repository at this point in the history