|
|
fd2bce |
From bdd43cf791634bd1be3375263fd6dc956a6fda13 Mon Sep 17 00:00:00 2001
|
|
|
fd2bce |
From: Vratislav Podzimek <vpodzime@redhat.com>
|
|
|
fd2bce |
Date: Mon, 6 Jul 2015 13:01:36 +0200
|
|
|
fd2bce |
Subject: [PATCH 5/9] Improve the description of the default profile (#1238080)
|
|
|
fd2bce |
|
|
|
fd2bce |
The default profile usually contains no rules so we should reflect that in its
|
|
|
fd2bce |
description.
|
|
|
fd2bce |
|
|
|
fd2bce |
Signed-off-by: Vratislav Podzimek <vpodzime@redhat.com>
|
|
|
fd2bce |
---
|
|
|
fd2bce |
org_fedora_oscap/content_handling.py | 5 +++--
|
|
|
fd2bce |
1 file changed, 3 insertions(+), 2 deletions(-)
|
|
|
fd2bce |
|
|
|
fd2bce |
diff --git a/org_fedora_oscap/content_handling.py b/org_fedora_oscap/content_handling.py
|
|
|
fd2bce |
index 5f90f64..8621428 100644
|
|
|
fd2bce |
--- a/org_fedora_oscap/content_handling.py
|
|
|
fd2bce |
+++ b/org_fedora_oscap/content_handling.py
|
|
|
fd2bce |
@@ -269,7 +269,8 @@ class DataStreamHandler(object):
|
|
|
fd2bce |
raise DataStreamHandlingError(OSCAP.oscap_err_desc())
|
|
|
fd2bce |
|
|
|
fd2bce |
# will hold items for the profiles for the speficied DS and checklist
|
|
|
fd2bce |
- profiles = [ProfileInfo("default", "Default", "The default profile")]
|
|
|
fd2bce |
+ profiles = [ProfileInfo("default", "Default",
|
|
|
fd2bce |
+ "The implicit XCCDF profile. Usually, the default contains no rules.")]
|
|
|
fd2bce |
|
|
|
fd2bce |
# get the benchmark (checklist)
|
|
|
fd2bce |
policy_model = OSCAP.xccdf_session_get_policy_model(self._session)
|
|
|
fd2bce |
@@ -317,7 +318,7 @@ class BenchmarkHandler(object):
|
|
|
fd2bce |
|
|
|
fd2bce |
# stores a list of profiles in the benchmark
|
|
|
fd2bce |
self._profiles = [ProfileInfo("default", "Default",
|
|
|
fd2bce |
- "The default profile")]
|
|
|
fd2bce |
+ "The implicit XCCDF profile. Usually, the default contains no rules.")]
|
|
|
fd2bce |
|
|
|
fd2bce |
session = OSCAP.xccdf_session_new(xccdf_file_path)
|
|
|
fd2bce |
if not session:
|
|
|
fd2bce |
--
|
|
|
fd2bce |
2.4.3
|
|
|
fd2bce |
|