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

hostsfile: Copy the SELinux context to the temp file before overwrite #273

Merged
merged 5 commits into from
Jul 1, 2024

Commits on May 4, 2024

  1. hostsfile: Copy the SELinux context to the temp file before overwrite

    On SELinux-enabled systems, /etc/hosts has a different type `net_conf_t`
    than the other files in /etc, so the temporary file that overwrites it
    ends up with the wrong context, resulting in many system services
    becoming unable to access the file. To fix this, manually look up the
    context /etc/hosts has and copy it to the temporary file before
    the rename.
    
    In order to avoid depending on libselinux on systems that don't use it,
    this support is gated behind the new "selinux" feature. It *is*
    installed and enabled in the Dockerfile, however, in order to ensure
    that it still builds.
    refi64 authored and bschwind committed May 4, 2024
    Configuration menu
    Copy the full SHA
    9011c36 View commit details
    Browse the repository at this point in the history
  2. Appease clippy

    bschwind committed May 4, 2024
    Configuration menu
    Copy the full SHA
    078598d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    146dd77 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    817376b View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    950be7d View commit details
    Browse the repository at this point in the history