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

Add TEST-06-SELINUX to mkosi integration tests #32588

Merged
merged 4 commits into from
May 4, 2024

Commits on May 3, 2024

  1. test: Skip TEST-06-SELINUX early if not on fedora/centos

    Other distributions may be able to install selinux
    but they are not expected to use it.
    
    The distribution is tested rather than whether selinux is enabled
    because it is expected to work on CentOS and Fedora
    and we want it to fail noisily.
    richardmaw-codethink committed May 3, 2024
    Configuration menu
    Copy the full SHA
    049b456 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a2a734e View commit details
    Browse the repository at this point in the history
  3. mkosi: Disable selinux labelling and install policy in initramfs

    It is necessary to install the selinux policy in the initramfs
    so that userland is entered with the correct label.
    
    SELinuxRelabel defaults to auto, which will skip if the relabelling
    command is not installed and will treat failure to relabel as non-fatal.
    
    We can't force it on because root privileges are required if the labels
    don't exist on the host system and we would like to be able to
    cross-build from other distributions.
    
    Since we are already committed to relabelling on first boot
    there is no value in even trying to label.
    richardmaw-codethink committed May 3, 2024
    Configuration menu
    Copy the full SHA
    e26efe0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ab9d602 View commit details
    Browse the repository at this point in the history