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

fix ownership of containerd/docker sysext files #2266

Merged
merged 3 commits into from
Sep 2, 2024

Commits on Aug 30, 2024

  1. build_library: Don't preserve file ownership when copying sysext files

    The docker and containerd copy files from the repository, which are owned by
    the sdk user. This ownership leaks into the final image, which means the first
    created user could edit systemd files. This is bad.
    
    Modify the cp invocation to copy files without preserving ownership. The
    sysext-mangle script is called by build_sysext, which is executed using sudo.
    
    Signed-off-by: Jeremi Piotrowski <[email protected]>
    jepio committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    ff6279a View commit details
    Browse the repository at this point in the history
  2. build_sysext: Add check for invalid file permissions in sysext

    Signed-off-by: Jeremi Piotrowski <[email protected]>
    jepio committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    247fcc2 View commit details
    Browse the repository at this point in the history
  3. changelog: Add entry for sysext file ownership bugfix

    Signed-off-by: Jeremi Piotrowski <[email protected]>
    jepio committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    412298c View commit details
    Browse the repository at this point in the history