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

install: Change no-SELinux -> SELinux to a warning && serialize to aleph #420

Merged
merged 3 commits into from
Mar 25, 2024

Commits on Mar 24, 2024

  1. install: Change no-SELinux -> SELinux to a warning

    We believe we have almost all the labeling work here covered,
    so degrade this to a warning.
    
    Signed-off-by: Colin Walters <walters@verbum.org>
    cgwalters committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    bab50e1 View commit details
    Browse the repository at this point in the history
  2. install: Change SELinux state into enum, serialize to aleph

    We want to support the "installing SELinux target from SELinux-disabled
    host" - but in case we run into problems, let's serialize the state
    of things at install time into the aleph data, for the same reason
    we save other relevant environmental data like the kernel version.
    
    Signed-off-by: Colin Walters <walters@verbum.org>
    cgwalters committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    201c439 View commit details
    Browse the repository at this point in the history
  3. install: Change to consume SELinux guard (and Arc<State>)

    This avoids a dead code warning on newer rustc.
    
    Also, it's just better because if we fail to re-invoke `setenforce 1`
    this should be a fatal error probably.
    
    Signed-off-by: Colin Walters <walters@verbum.org>
    cgwalters committed Mar 24, 2024
    Configuration menu
    Copy the full SHA
    7842a61 View commit details
    Browse the repository at this point in the history