You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Document that the '--local-files' option works only with SCAP 1.3
source data streams.
- Add a warning if users use '--local-files' with different versions of
SCAP source data streams.
- Add a simple upstream test for the added warning.
Resolves: https://issues.redhat.com/browse/RHEL-74343
NOTE: The `--local-files` option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
1714
+
1711
1715
== Practical Examples
1712
1716
This section demonstrates practical usage of certain security content provided
1713
1717
for Red Hat products.
@@ -2297,4 +2301,5 @@ You can find the ID of the customized profile with `oscap info <your_tailoring_f
2297
2301
2298
2302
Yes, it's possible, you can download the file on other computer that is connected to the internet and then copy the file to the system where you run `oscap`.
2299
2303
Instead of the `--fetch-remote-resources` option you will use the `--local-files` option.
2304
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
2300
2305
For more information, please refer to section <<_using_external_or_remote_resources,Using external or remote resources>>.
grep -q "WARNING: The '--local-files' option can be used only with SCAP 1.3 source data streams, but the provided data stream is version '1.2'. No local files will be used.""$stderr"
Copy file name to clipboardExpand all lines: utils/oscap.8
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ Allow download of remote components referenced from data stream.
75
75
\fB\-\-local-filesDIRECTORY\fR
76
76
.RS
77
77
Instead of downloading remote data stream components from the network, use data stream components stored locally as files in the given directory. In place of the remote data stream component OpenSCAP will attempt to use a file whose file name is equal to @name attribute of the uri element within the catalog element within the component-ref element in the data stream if such file exists.
78
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
78
79
.RE
79
80
.TP
80
81
\fB\-\-profilePROFILE\fR
@@ -225,6 +226,7 @@ Allow download of remote OVAL content referenced from XCCDF by check-content-ref
225
226
\fB\-\-local-filesDIRECTORY\fR
226
227
.RS
227
228
Instead of downloading remote data stream components from the network, use data stream components stored locally as files in the given directory. In place of the remote data stream component OpenSCAP will attempt to use a file whose file name is equal to @name attribute of the uri element within the catalog element within the component-ref element in the data stream if such file exists.
229
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
228
230
.RE
229
231
.TP
230
232
\fB\-\-remediate\fR
@@ -255,6 +257,7 @@ Allow download of remote OVAL content referenced from XCCDF by check-content-ref
255
257
\fB\-\-local-filesDIRECTORY\fR
256
258
.RS
257
259
Instead of downloading remote data stream components from the network, use data stream components stored locally as files in the given directory. In place of the remote data stream component OpenSCAP will attempt to use a file whose file name is equal to @name attribute of the uri element within the catalog element within the component-ref element in the data stream if such file exists.
260
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
258
261
.RE
259
262
.TP
260
263
\fB\-\-cpeCPE_FILE\fR
@@ -342,6 +345,7 @@ Allow download of remote OVAL content referenced from XCCDF by check-content-ref
342
345
\fB\-\-local-filesDIRECTORY\fR
343
346
.RS
344
347
Instead of downloading remote data stream components from the network, use data stream components stored locally as files in the given directory. In place of the remote data stream component OpenSCAP will attempt to use a file whose file name is equal to @name attribute of the uri element within the catalog element within the component-ref element in the data stream if such file exists.
348
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
345
349
.RE
346
350
.TP
347
351
\fB\-\-skip-valid\fR, \fB\-\-skip-validation\fR
@@ -518,6 +522,7 @@ Allow download of remote components referenced from data stream.
518
522
.TP
519
523
\fB\-\-local-filesDIRECTORY\fR
520
524
Instead of downloading remote data stream components from the network, use data stream components stored locally as files in the given directory. In place of the remote data stream component OpenSCAP will attempt to use a file whose file name is equal to @name attribute of the uri element within the catalog element within the component-ref element in the data stream if such file exists.
525
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
521
526
.RE
522
527
523
528
.TP
@@ -682,6 +687,7 @@ Allow download of remote components referenced from data stream.
682
687
.TP
683
688
\fB\-\-local-filesDIRECTORY\fR
684
689
Instead of downloading remote data stream components from the network, use data stream components stored locally as files in the given directory. In place of the remote data stream component OpenSCAP will attempt to use a file whose file name is equal to @name attribute of the uri element within the catalog element within the component-ref element in the data stream if such file exists.
690
+
This option works only with SCAP 1.3 source data streams. It can't be used with SCAP 1.2 source data streams.
0 commit comments