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

Pass OSCAP_BOOTC_BUILD to remediations #2170

Merged
merged 1 commit into from
Oct 23, 2024

Commits on Oct 23, 2024

  1. Pass OSCAP_BOOTC_BUILD to remediations

    Starting with this commit, the OSCAP_BOOTC_BUILD environment variable
    will be passed down to the bash remediation. If this environment
    variable is set in the caller environment, the Bash remediations will be
    able to access it and read its value. This will be useful because the
    bash remediations will be able to contain a condition depending on this
    variable. Using this feature we can influence the behavior of our Bash
    remediations in the process of building bootable container images. The
    `oscap-bootc` utility will export the `OSCAP_BOOTC_BUILD` environment
    variable and the Bash remeditions will check this variable and for
    example they will not start systemd services.
    
    This commit also adds a small test.
    jan-cerny committed Oct 23, 2024
    Configuration menu
    Copy the full SHA
    502d41b View commit details
    Browse the repository at this point in the history