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

Make --disable-selinux work on hosts that have selinux=0 #340

Merged
merged 2 commits into from
Feb 14, 2024

Commits on Feb 14, 2024

  1. lsm: Look for selinuxfs mounted on host

    This ensures we handle the case where SELinux is compile in the kernel
    (e.g. Fedora) but where it's disabled at runtime via selinux=0.
    
    fixes containers#303
    
    Signed-off-by: ckyrouac <ckyrouac@redhat.com>
    ckyrouac committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    d68f771 View commit details
    Browse the repository at this point in the history
  2. install: Make --disable-selinux always override host state

    If the user disables SELinux, we should always honor that and not care
    about the host state.
    
    fixes: containers#303
    
    Signed-off-by: ckyrouac <ckyrouac@redhat.com>
    ckyrouac committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    3921b71 View commit details
    Browse the repository at this point in the history