Ejemplo n.º 1
0
    def generate_guide(self, config):
        if self.mode == oscap_helpers.EvaluationMode.SOURCE_DATASTREAM:
            return oscap_helpers.generate_guide(self, config)

        elif self.mode == oscap_helpers.EvaluationMode.OVAL:
            # TODO: improve this
            return "<html><body>OVAL evaluation</body></html>"

        elif self.mode == oscap_helpers.EvaluationMode.CVE_SCAN:
            # TODO: improve this
            return "<html><body>CVE scan evaluation</body></html>"

        elif self.mode == oscap_helpers.EvaluationMode.STANDARD_SCAN:
            return oscap_helpers.generate_guide(self, config)

        raise RuntimeError("Unknown EvaluationMode %i" % (self.mode))
Ejemplo n.º 2
0
    def generate_guide(self, config):
        if self.mode == oscap_helpers.EvaluationMode.SOURCE_DATASTREAM:
            return oscap_helpers.generate_guide(self, config)

        elif self.mode == oscap_helpers.EvaluationMode.OVAL:
            # TODO: improve this
            return "<html><body>OVAL evaluation</body></html>"

        elif self.mode == oscap_helpers.EvaluationMode.CVE_SCAN:
            # TODO: improve this
            return "<html><body>CVE scan evaluation</body></html>"

        elif self.mode == oscap_helpers.EvaluationMode.STANDARD_SCAN:
            return oscap_helpers.generate_guide(self, config)

        raise RuntimeError("Unknown EvaluationMode %i" % (self.mode))
Ejemplo n.º 3
0
 def generate_guide(self, config):
     return oscap_helpers.generate_guide(self, config)