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

Wrap Bash snippets in a subshell when generating a fix script #2072

Merged

Conversation

evgenyz
Copy link
Contributor

@evgenyz evgenyz commented Jan 15, 2024

Bring the behavior of the generated Bash script closer to one we have with oscap xccdf eval --remediate.

This will ensure snippet isolation and protect the script flow from possible intrusive commands and settings (exit, trap etc).

Bring the behavior of the generated Bash script closer to one
we have with oscap xccdf eval --remediate.

This will ensure snippet isolation and protect the script flow
from possible intrusive commands and settings (exit, trap etc).
@evgenyz evgenyz added this to the 1.3.10 milestone Jan 15, 2024
@jan-cerny jan-cerny self-assigned this Feb 1, 2024
@jan-cerny jan-cerny merged commit 192f545 into OpenSCAP:maint-1.3 Feb 1, 2024
19 checks passed
@evgenyz evgenyz deleted the add-subshell-for-bash-fix-script branch February 1, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants