Skip to content

Commit 4fda084

Browse files
authored
Merge pull request OpenSCAP#2201 from jan-cerny/remove_oscap_bootc_build
Remove OSCAP_BOOTC_BUILD environment variable
2 parents 0e2f9f5 + 4c3c309 commit 4fda084

File tree

5 files changed

+2
-106
lines changed

5 files changed

+2
-106
lines changed

src/XCCDF_POLICY/xccdf_policy_remediate.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -464,14 +464,8 @@ static inline int _xccdf_fix_execute(struct xccdf_rule_result *rr, struct xccdf_
464464
NULL
465465
};
466466

467-
char *oscap_bootc_build = getenv("OSCAP_BOOTC_BUILD");
468-
char *oscap_bootc_build_kvarg = NULL;
469-
if (oscap_bootc_build != NULL) {
470-
oscap_bootc_build_kvarg = oscap_sprintf("OSCAP_BOOTC_BUILD=%s", oscap_bootc_build);
471-
}
472-
char *const envp[3] = {
467+
char *const envp[2] = {
473468
"PATH=/bin:/sbin:/usr/bin:/usr/sbin",
474-
oscap_bootc_build_kvarg,
475469
NULL
476470
};
477471

tests/API/XCCDF/unittests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,3 @@ add_oscap_test("test_no_newline_between_select_elements.sh")
111111
add_oscap_test("test_single_line_tailoring.sh")
112112
add_oscap_test("test_reference.sh")
113113
add_oscap_test("test_remediation_bootc.sh")
114-
add_oscap_test("test_oscap_bootc_pass_down.sh")

tests/API/XCCDF/unittests/test_oscap_bootc_pass_down.ds.xml

Lines changed: 0 additions & 66 deletions
This file was deleted.

tests/API/XCCDF/unittests/test_oscap_bootc_pass_down.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

utils/oscap-im

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def scan_and_remediate(args):
120120
add_common_args(args, oscap_cmd)
121121
add_eval_args(args, oscap_cmd)
122122
oscap_cmd.append(args.data_stream)
123-
env = {"OSCAP_PREFERRED_ENGINE": "SCE", "OSCAP_BOOTC_BUILD": "YES"}
123+
env = {"OSCAP_PREFERRED_ENGINE": "SCE"}
124124
try:
125125
subprocess.run(oscap_cmd, env=env, check=True)
126126
except subprocess.CalledProcessError as e:

0 commit comments

Comments
 (0)