From b253cbc57f958bf5e1ab55d5065d56a76baaca99 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 17 May 2022 04:50:47 -0400 Subject: [PATCH] import oscap-anaconda-addon-2.0.0-8.el9 --- .gitignore | 2 + .oscap-anaconda-addon.metadata | 2 + SOURCES/lang.patch | 1526 +++++++++++++++++ ...n-1.2.2-dbus_show_integration-PR_182.patch | 39 + ...on-2.0.1-fix_archive_handling-PR_170.patch | 14 + ...a-addon-2.0.1-fix_fingerprint-PR_177.patch | 22 + ...-addon-2.0.1-fix_no_hardening-PR_176.patch | 32 + ...don-2.0.1-rhel9_tailoring_fix-PR_180.patch | 29 + ...-addon-2.0.1-various_bugfixes-PR_166.patch | 460 +++++ ...onda-addon-2.1.0-unified_help-PR_192.patch | 52 + SPECS/oscap-anaconda-addon.spec | 273 +++ 11 files changed, 2451 insertions(+) create mode 100644 .gitignore create mode 100644 .oscap-anaconda-addon.metadata create mode 100644 SOURCES/lang.patch create mode 100644 SOURCES/oscap-anaconda-addon-1.2.2-dbus_show_integration-PR_182.patch create mode 100644 SOURCES/oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch create mode 100644 SOURCES/oscap-anaconda-addon-2.0.1-fix_fingerprint-PR_177.patch create mode 100644 SOURCES/oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch create mode 100644 SOURCES/oscap-anaconda-addon-2.0.1-rhel9_tailoring_fix-PR_180.patch create mode 100644 SOURCES/oscap-anaconda-addon-2.0.1-various_bugfixes-PR_166.patch create mode 100644 SOURCES/oscap-anaconda-addon-2.1.0-unified_help-PR_192.patch create mode 100644 SPECS/oscap-anaconda-addon.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..899e719 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/addon-dbus-data.zip +SOURCES/oscap-anaconda-addon-2.0.0.tar.gz diff --git a/.oscap-anaconda-addon.metadata b/.oscap-anaconda-addon.metadata new file mode 100644 index 0000000..acc2bbd --- /dev/null +++ b/.oscap-anaconda-addon.metadata @@ -0,0 +1,2 @@ +5645cafa41192e05989f7333db23e20bb7f35604 SOURCES/addon-dbus-data.zip +d04955d3fcae16a86087af731e837d5ce06fe349 SOURCES/oscap-anaconda-addon-2.0.0.tar.gz diff --git a/SOURCES/lang.patch b/SOURCES/lang.patch new file mode 100644 index 0000000..53aea35 --- /dev/null +++ b/SOURCES/lang.patch @@ -0,0 +1,1526 @@ +diff -U3 -N -r a/po/cs.po b/po/cs.po +--- a/po/cs.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/cs.po 2022-01-24 15:40:42.974286864 +0100 +@@ -13,7 +13,7 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2021-07-02 15:11+0000\n" ++"PO-Revision-Date: 2021-07-13 13:04+0000\n" + "Last-Translator: Matěj Týč \n" + "Language-Team: Czech \n" +@@ -27,24 +27,24 @@ + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "Nelze rozbalit archiv jako soubor zip: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" +-msgstr "Test integrity dat neprošel. Nelze použít tato data." ++msgstr "" ++"Test integrity dat neprošel - nesouhlasí kontrolní součet {hash_obj.name}" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Ke stažení dat je třeba být připojen k síti." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" +-msgstr "" ++msgstr "Nezdařilo se stažení dat - HTTP požadavek skončil chybou {return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -154,34 +154,28 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "Instalaci byste měli ukončit." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "Přejete si přesto pokračovat?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "Test integrity dat neprošel. Nelze použít tato data." ++msgstr "Test integrity dat neprošel." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "Chyba při získávání a načítání dat" ++msgstr "Chyba při získávání a načítání dat:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "Došlo k nečekanému problému s daty." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "Detekována nesprávná konfigurace" ++msgstr "Detekována nesprávná konfigurace!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +diff -U3 -N -r a/po/de.po b/po/de.po +--- a/po/de.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/de.po 2022-01-24 15:40:42.974286864 +0100 +@@ -4,15 +4,16 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2019-08-30 10:55-0400\n" +-"Last-Translator: Ludek Janda \n" +-"Language-Team: German\n" ++"PO-Revision-Date: 2021-12-28 22:16+0000\n" ++"Last-Translator: Ettore Atalan \n" ++"Language-Team: German \n" + "Language: de\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"Plural-Forms: nplurals=2; plural=(n != 1)\n" +-"X-Generator: Zanata 4.6.2\n" ++"Plural-Forms: nplurals=2; plural=n != 1;\n" ++"X-Generator: Weblate 4.10.1\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format +@@ -30,7 +31,7 @@ + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Zum Abrufen der Daten ist eine Netzwerkverbindung erforderlich." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format +@@ -192,7 +193,7 @@ + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 + msgid "_Security Policy" +-msgstr "_Sicherheitspolitik" ++msgstr "_Sicherheitsrichtlinie" + + #. the first status provided + #: ../org_fedora_oscap/gui/spokes/oscap.py:229 +@@ -304,7 +305,7 @@ + + #: tmp/oscap.glade.h:1 + msgid "SECURITY POLICY" +-msgstr "SICHERHEITSPOLITIK" ++msgstr "SICHERHEITSRICHTLINIE" + + #: tmp/oscap.glade.h:2 + msgid "_Change content" +diff -U3 -N -r a/po/fi.po b/po/fi.po +--- a/po/fi.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/fi.po 2022-01-24 15:40:42.975286864 +0100 +@@ -7,38 +7,41 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2021-06-04 11:03+0000\n" +-"Last-Translator: Ricky Tigg \n" +-"Language-Team: Finnish \n" ++"PO-Revision-Date: 2021-07-13 13:04+0000\n" ++"Last-Translator: Jan Kuparinen \n" ++"Language-Team: Finnish \n" + "Language: fi\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=2; plural=n != 1;\n" +-"X-Generator: Weblate 4.6.2\n" ++"X-Generator: Weblate 4.7.1\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "Virhe purettaessa arkistoa zip-tiedostona: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" +-msgstr "Sisällön eheyden tarkistus epäonnistui. Sisältöä ei voi käyttää." ++msgstr "" ++"Sisällön eheyden tarkistus epäonnistui. - {hash_obj.name} tarkiste ei ollut " ++"oikein" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Verkkoyhteys tarvitaan tiedonhakua varten." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" + msgstr "" ++"Tietojen noutaminen epäonnistui - pyyntö palautti HTTP-virhekoodin " ++"{return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -150,34 +153,28 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "Asennus pitäisi keskeyttää." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "Haluatko silti jatkaa?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "Sisällön eheyden tarkistus epäonnistui. Sisältöä ei voi käyttää." ++msgstr "Sisällön tietoturvasisällön eheyden tarkistus epäonnistui." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "Virhe sisällön noutamisessa ja lataamisessa" ++msgstr "Sattui virhe tietoturvasisällön noutamisessa ja lataamisessa:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "Toimitetun sisällön kohdalla oli odottamaton ongelma." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "Virheellinen määritys havaittu" ++msgstr "Virheellinen määritys havaittu!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +diff -U3 -N -r a/po/fr.po b/po/fr.po +--- a/po/fr.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/fr.po 2022-01-24 15:40:42.975286864 +0100 +@@ -13,40 +13,41 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2020-06-26 04:26-0400\n" +-"Last-Translator: Copied by Zanata \n" +-"Language-Team: French (http://www.transifex.com/projects/p/oscap-anaconda-" +-"addon/language/fr/)\n" ++"PO-Revision-Date: 2021-08-20 09:04+0000\n" ++"Last-Translator: Ludek Janda \n" ++"Language-Team: French \n" + "Language: fr\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"Plural-Forms: nplurals=2; plural=(n > 1);\n" +-"X-Generator: Zanata 4.6.2\n" ++"Plural-Forms: nplurals=2; plural=n > 1;\n" ++"X-Generator: Weblate 4.7.2\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "Erreur d'extraction de l'archive en tant que fichier zip : {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" + msgstr "" +-"Le contrôle d'intégrité du contenu a échoué. Impossible d'utiliser le " +-"contenu." ++"Le contrôle d'intégrité du contenu a échoué - le hachage de {hash_obj.name} " ++"ne correspond pas" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Connexion réseau nécessaire pour récupérer les données." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" + msgstr "" ++"Impossible de récupérer les données - la demande a renvoyé un code d'erreur " ++"HTTP {return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -165,36 +166,30 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "L'installation doit être interrompue." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "Voulez-vous malgré tout continuer ?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "" +-"Le contrôle d'intégrité du contenu a échoué. Impossible d'utiliser le " +-"contenu." ++msgstr "La vérification de l'intégrité du contenu sécurité a échoué." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "Erreur d'extraction et de chargement du contenu" ++msgstr "" ++"Une erreur s'est produite lors de la récupération et du chargement du " ++"contenu sécurité :\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "Il y a eu un problème inattendu avec le contenu fourni." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "Mauvaise configuration détectée" ++msgstr "Mauvaise configuration détectée !" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +diff -U3 -N -r a/po/hr.po b/po/hr.po +--- a/po/hr.po 1970-01-01 01:00:00.000000000 +0100 ++++ b/po/hr.po 2022-01-24 15:40:42.975286864 +0100 +@@ -0,0 +1,340 @@ ++# SOME DESCRIPTIVE TITLE. ++# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER ++# This file is distributed under the same license as the PACKAGE package. ++# FIRST AUTHOR , YEAR. ++# ++msgid "" ++msgstr "" ++"Project-Id-Version: PACKAGE VERSION\n" ++"Report-Msgid-Bugs-To: \n" ++"POT-Creation-Date: 2021-07-02 15:52+0200\n" ++"PO-Revision-Date: 2021-10-20 19:05+0000\n" ++"Last-Translator: Gogo Gogsi \n" ++"Language-Team: Croatian \n" ++"Language: hr\n" ++"MIME-Version: 1.0\n" ++"Content-Type: text/plain; charset=UTF-8\n" ++"Content-Transfer-Encoding: 8bit\n" ++"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" ++"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" ++"X-Generator: Weblate 4.8\n" ++ ++#: ../org_fedora_oscap/common.py:358 ++#, python-brace-format ++msgid "Error extracting archive as a zipfile: {exc}" ++msgstr "Greška raspakiravanja arhive kao zip datoteke: {exc}" ++ ++#: ../org_fedora_oscap/content_discovery.py:189 ++#, python-brace-format ++msgid "" ++"Integrity check of the content failed - {hash_obj.name} hash didn't match" ++msgstr "" ++"Neuspjela provjera cjelovitosti sadržaja - {hash_obj.name} vrijednost " ++"provjere se ne podudara" ++ ++#: ../org_fedora_oscap/data_fetch.py:117 ++msgid "Network connection needed to fetch data." ++msgstr "Mrežno povezivanje je potrebno za preuzimanje podataka." ++ ++#: ../org_fedora_oscap/data_fetch.py:262 ++#, python-brace-format ++msgid "" ++"Failed to fetch data - the request returned HTTP error code {return_code}" ++msgstr "" ++"Neuspjelo preuzimanje podataka - Zahtjev je vratio HTTP kôd geške " ++"{return_code}" ++ ++#: ../org_fedora_oscap/rule_handling.py:441 ++#, python-brace-format ++msgid "" ++"{0} must be on a separate partition or logical volume and has to be created " ++"in the partitioning layout before installation can occur with a security " ++"profile" ++msgstr "" ++"{0} mora biti na zasebnoj particiji ili logičkom uređaju i mora biti stvoren " ++"u particijskom rasporedu prije instalacije sa sigurnosnim profilom" ++ ++#. template for the message ++#: ../org_fedora_oscap/rule_handling.py:452 ++#, python-format ++msgid "" ++"mount option '%(mount_option)s' added for the mount point %(mount_point)s" ++msgstr "" ++"mogućnost montiranja '%(mount_option)s' je dodana za točku montiranja " ++"%(mount_point)s" ++ ++#. root password was not set ++#: ../org_fedora_oscap/rule_handling.py:560 ++#, python-format ++msgid "make sure to create password with minimal length of %d characters" ++msgstr "pobrinite se da stvorite lozinku s najmanje %d znakova" ++ ++#: ../org_fedora_oscap/rule_handling.py:567 ++msgid "cannot check root password length (password is crypted)" ++msgstr "nemoguća provjera duljine korijenske lozinke (lozinka je šifrirana)" ++ ++#. too short ++#: ../org_fedora_oscap/rule_handling.py:573 ++#, python-format ++msgid "" ++"root password is too short, a longer one with at least %d characters is " ++"required" ++msgstr "" ++"korijenska lozinka je prekrataka, potrebna je dulja s najmanje %d znakova" ++ ++#: ../org_fedora_oscap/rule_handling.py:712 ++#: ../org_fedora_oscap/rule_handling.py:727 ++#, python-format ++msgid "package '%s' has been added to the list of to be installed packages" ++msgstr "paket '%s' je dodan na popis paketa za instaliranje" ++ ++#: ../org_fedora_oscap/rule_handling.py:737 ++#, python-brace-format ++msgid "" ++"package '{package}' has been added to the list of excluded packages, but it " ++"can't be removed from the current software selection without breaking the " ++"installation." ++msgstr "" ++"paket '{package}' je dodan na popis izuzetih paketa, ali se može ukloniti iz " ++"trenutnog odabira softvera bez slamanja instalacije." ++ ++#: ../org_fedora_oscap/rule_handling.py:744 ++#: ../org_fedora_oscap/rule_handling.py:759 ++#, python-format ++msgid "package '%s' has been added to the list of excluded packages" ++msgstr "paket '%s' je dodan na popis izuzetih paketa od instalacije" ++ ++#: ../org_fedora_oscap/rule_handling.py:866 ++msgid "Kdump will be disabled on startup" ++msgstr "Kdump biti će onemogućen pri pokretanju" ++ ++#: ../org_fedora_oscap/rule_handling.py:868 ++msgid "Kdump will be enabled on startup" ++msgstr "Kdump biti će omogućen pri pokretanju" ++ ++#: ../org_fedora_oscap/rule_handling.py:1026 ++msgid "Firewall will be disabled on startup" ++msgstr "Vatrozid će biti onemogućen pri pokretanju" ++ ++#: ../org_fedora_oscap/rule_handling.py:1033 ++msgid "Firewall will be enabled on startup" ++msgstr "Vatrozid će biti omogućen pri pokretanju" ++ ++#: ../org_fedora_oscap/rule_handling.py:1041 ++#: ../org_fedora_oscap/rule_handling.py:1080 ++#, python-format ++msgid "" ++"service '%s' has been added to the list of services to be added to the " ++"firewall" ++msgstr "usluga '%s' je dodana na popis usluga koji će biti dodan u vatrozid" ++ ++#: ../org_fedora_oscap/rule_handling.py:1048 ++#: ../org_fedora_oscap/rule_handling.py:1093 ++#, python-format ++msgid "" ++"port '%s' has been added to the list of ports to be added to the firewall" ++msgstr "ulaz '%s' je dodan na popis ulaza koji će biti dodan u vatrozid" ++ ++#: ../org_fedora_oscap/rule_handling.py:1055 ++#: ../org_fedora_oscap/rule_handling.py:1106 ++#, python-format ++msgid "" ++"trust '%s' has been added to the list of trusts to be added to the firewall" ++msgstr "" ++"povjerenje '%s' je dodano na popis povjerenja koji će biti dodan u vatrozid" ++ ++#: ../org_fedora_oscap/rule_handling.py:1118 ++#: ../org_fedora_oscap/rule_handling.py:1133 ++#, python-format ++msgid "" ++"service '%s' has been added to the list of services to be removed from the " ++"firewall" ++msgstr "" ++"usluga '%s' je dodana na popis usluga koji će biti uklonjen iz vatrozida" ++ ++#: ../org_fedora_oscap/service/installation.py:41 ++msgid "The integrity check of the security content failed." ++msgstr "Neuspjela provjera cjelovitosti sigurnosnog sadržaja." ++ ++#: ../org_fedora_oscap/service/installation.py:46 ++msgid "There was an error fetching and loading the security content:\n" ++msgstr "Došlo je do greške preuzimanja i učitavanja sigurnosnog sadržaja:\n" ++ ++#: ../org_fedora_oscap/service/installation.py:51 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:793 ++msgid "There was an unexpected problem with the supplied content." ++msgstr "Došlo je do neočekivanog problema s isporučenim sadržajem." ++ ++#: ../org_fedora_oscap/service/installation.py:56 ++msgid "The installation should be aborted." ++msgstr "Instalacija bi se trebala prekinuti." ++ ++#: ../org_fedora_oscap/service/installation.py:148 ++msgid "Wrong configuration detected!" ++msgstr "Pogrešno podešavanje je otkriveno!" ++ ++#: ../org_fedora_oscap/service/oscap.py:121 ++msgid "You have used more than one oscap addon sections in the kickstart. " ++msgstr "Koristili ste više od jednog odjeljka oscap dodatka u kickstartu. " ++ ++#: ../org_fedora_oscap/service/oscap.py:135 ++#, python-brace-format ++msgid "" ++"You have configured the oscap addon using '{used_section_header}' section. " ++msgstr "Podesili ste oscap dodatak koristeći '{used_section_header}' odjeljak. " ++ ++#. title of the spoke (will be displayed on the hub) ++#: ../org_fedora_oscap/gui/spokes/oscap.py:201 ++msgid "_Security Profile" ++msgstr "_Sigurnosni profil" ++ ++#. the first status provided ++#: ../org_fedora_oscap/gui/spokes/oscap.py:228 ++msgid "Not ready" ++msgstr "Nije spremno" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:393 ++msgid "Fetching content data" ++msgstr "Preuzimanje sadržaja podataka" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:431 ++msgid "Fetch complete, analyzing data." ++msgstr "Preuzimanje je završeno, analiza podataka." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:643 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1072 ++msgid "No profile selected" ++msgstr "Nema odabranog profila" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:648 ++msgid "No rules for the pre-installation phase" ++msgstr "Nema pravila za predinstalacijsku fazu" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:801 ++msgid "Invalid content provided. Enter a different URL, please." ++msgstr "Nevaljani sadržaj je naveden. Upišite drugi URL." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:809 ++msgid "Invalid or unsupported content URL, please enter a different one." ++msgstr "Nevaljani ili nepodržani URL sadržaja, upišite drugi." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:817 ++msgid "Failed to fetch content. Enter a different URL, please." ++msgstr "Neuspjelo preuzimanje sadržaja. Upišite drugi URL." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:825 ++msgid "" ++"Network error encountered when fetching data. Please check that network is " ++"setup and working." ++msgstr "" ++"Došlo je do mrežne greške pri preuzimanju podataka. Provjerite je li mreža " ++"postavljena i radi li." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:834 ++msgid "The integrity check of the content failed. Cannot use the content." ++msgstr "Neuspjela provjera cjelovitosti sadržaja. Sadržaj se ne može koristiti." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:842 ++#, python-format ++msgid "Failed to extract content (%s). Enter a different URL, please." ++msgstr "Neuspjelo izdvajanje sadržaja (%s). Upišite drugi URL." ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:860 ++#, python-format ++msgid "" ++"Profile with ID '%s' not defined in the content. Select a different profile, " ++"please" ++msgstr "Profil sa '%s' ID-jem nije određen u sadržaju. Odaberite drugi profil" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:879 ++msgid "Not applying security profile" ++msgstr "Sigurnosni profil se ne primijenjuje" ++ ++#. TRANSLATORS: the other choice if SCAP Security Guide is also ++#. available ++#: ../org_fedora_oscap/gui/spokes/oscap.py:921 ++msgid " or enter data stream content or archive URL below:" ++msgstr " ili upišite sadržaj toka podataka ili URL arhive ispod:" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:925 tmp/oscap.glade.h:12 ++msgid "" ++"No content found. Please enter data stream content or archive URL below:" ++msgstr "" ++"Nema pronađenog sadržaja. Upišite sadržaj toka podataka ili URL arhive ispod:" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1062 ++msgid "Error fetching and loading content" ++msgstr "Greška preuzimanja i učitavanja sadržaja" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1069 ++msgid "No content found" ++msgstr "Nema pronađenog sadržaja" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1080 ++msgid "Misconfiguration detected" ++msgstr "Otkriveno je pogrešno podešavanje" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1086 ++msgid "Warnings appeared" ++msgstr "Pojavila su se upozorenja" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1088 ++msgid "Everything okay" ++msgstr "Sve je uredu" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1170 ++msgid "Invalid or unsupported URL" ++msgstr "Nevaljani ili nepodržani URL" ++ ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1176 tmp/oscap.glade.h:14 ++msgid "Fetching content..." ++msgstr "Preuzimanje sadržaja..." ++ ++#: tmp/oscap.glade.h:1 ++msgid "SECURITY PROFILE" ++msgstr "SIGURNOSNI PROFIL" ++ ++#: tmp/oscap.glade.h:2 ++msgid "_Change content" ++msgstr "_Promijeni sadržaj" ++ ++#: tmp/oscap.glade.h:3 ++msgid "Apply security policy:" ++msgstr "Primijeni sigurnosna pravila:" ++ ++#: tmp/oscap.glade.h:4 ++msgid "Data stream:" ++msgstr "Tok podataka:" ++ ++#: tmp/oscap.glade.h:5 ++msgid "Checklist:" ++msgstr "Spisak:" ++ ++#: tmp/oscap.glade.h:6 ++msgid "Choose profile below:" ++msgstr "Odaberite profil ispod:" ++ ++#: tmp/oscap.glade.h:7 ++msgid "Profile" ++msgstr "Profil" ++ ++#: tmp/oscap.glade.h:8 ++msgid "Selected" ++msgstr "Odabrano" ++ ++#: tmp/oscap.glade.h:9 ++msgid "_Select profile" ++msgstr "_Odaberi profil" ++ ++#: tmp/oscap.glade.h:10 ++msgid "Changes that were done or need to be done:" ++msgstr "Promjene koje su učinjene ili se trebaju učiniti:" ++ ++#: tmp/oscap.glade.h:11 ++msgid "_Use SCAP Security Guide" ++msgstr "_Koristi SCAP sigurnosni vodič" ++ ++#: tmp/oscap.glade.h:13 ++msgid "_Fetch" ++msgstr "_Preuzmi" +diff -U3 -N -r a/po/ja.po b/po/ja.po +--- a/po/ja.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/ja.po 2022-01-24 15:40:42.975286864 +0100 +@@ -8,38 +8,37 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2021-04-07 16:02+0000\n" +-"Last-Translator: simmon \n" +-"Language-Team: Japanese \n" ++"PO-Revision-Date: 2021-08-20 09:04+0000\n" ++"Last-Translator: Ludek Janda \n" ++"Language-Team: Japanese \n" + "Language: ja\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=1; plural=0;\n" +-"X-Generator: Weblate 4.5.3\n" ++"X-Generator: Weblate 4.7.2\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "アーカイブを zip ファイルとして抽出する際にエラーが発生しました: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" +-msgstr "コンテンツの整合性チェックに失敗しました。コンテンツを使用できません。" ++msgstr "コンテンツの整合性チェックに失敗しました。{hash_obj.name} ハッシュが一致しませんでした" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "データの取得に必要なネットワーク接続。" + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" +-msgstr "" ++msgstr "データの取得に失敗しました。返された HTTP エラーコード {return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -152,39 +151,33 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "インストールを中止する必要があります。" + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "それでも続行しますか?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "コンテンツの整合性チェックに失敗しました。コンテンツを使用できません。" ++msgstr "セキュリティーコンテンツの整合性チェックに失敗しました。" + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "コンテンツの取得およびロードのエラー" ++msgstr "セキュリティーコンテンツの取得およびロード時にエラーが発生しました:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "指定のコンテンツで予期しない問題が発生しました。" + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "設定ミスが検出されました" ++msgstr "設定が正しく検出されました!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 + msgid "_Security Policy" +-msgstr "セキュリティーポリシ" ++msgstr "セキュリティーポリシー(_S)" + + #. the first status provided + #: ../org_fedora_oscap/gui/spokes/oscap.py:229 +@@ -240,9 +233,7 @@ + msgid "" + "Profile with ID '%s' not defined in the content. Select a different profile, " + "please" +-msgstr "" +-"コンテンツで ID が '%s' のプロファイルが定義されていません。別のプロファイル" +-"を選択してください" ++msgstr "コンテンツで ID が '%s' のプロファイルが定義されていません。別のプロファイルを選択してください" + + #: ../org_fedora_oscap/gui/spokes/oscap.py:856 + msgid "Not applying security policy" +@@ -252,16 +243,12 @@ + #. available + #: ../org_fedora_oscap/gui/spokes/oscap.py:887 + msgid " or enter data stream content or archive URL below:" +-msgstr "" +-" または、以下にデータストリームコンテンツもしくはアーカイブの URL を入力しま" +-"す:" ++msgstr " または、以下にデータストリームコンテンツもしくはアーカイブの URL を入力します:" + + #: ../org_fedora_oscap/gui/spokes/oscap.py:891 tmp/oscap.glade.h:12 + msgid "" + "No content found. Please enter data stream content or archive URL below:" +-msgstr "" +-"コンテンツが見つかりませんでした。以下にデータストリームコンテンツもしくは" +-"アーカイブの URL を入力してください:" ++msgstr "コンテンツが見つかりませんでした。以下にデータストリームコンテンツもしくはアーカイブの URL を入力してください:" + + #: ../org_fedora_oscap/gui/spokes/oscap.py:1029 + msgid "Error fetching and loading content" +diff -U3 -N -r a/po/ko.po b/po/ko.po +--- a/po/ko.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/ko.po 2022-01-24 15:40:42.975286864 +0100 +@@ -6,38 +6,37 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2021-04-02 07:02+0000\n" ++"PO-Revision-Date: 2021-07-06 15:04+0000\n" + "Last-Translator: simmon \n" +-"Language-Team: Korean \n" ++"Language-Team: Korean \n" + "Language: ko\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=1; plural=0;\n" +-"X-Generator: Weblate 4.5.3\n" ++"X-Generator: Weblate 4.7.1\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "zipfile로 압축 해제 중 오류가 발생하였습니다: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" +-msgstr "내용 무결성 검사에 실패했습니다. 내용을 사용 할 수 없습니다." ++msgstr "내용 무결성 검사에 실패 - {hash_obj.name} 해쉬가 일치하지 않습니다" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "자료를 가져올 때에 네트워크 연결이 필요합니다." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" +-msgstr "" ++msgstr "자료 가져오기에 실패 - 요청은 HTTP 오류 코드 {return_code}를 반환했습니다" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -145,34 +144,28 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "설치가 중지되었습니다." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "계속 진행 할까요?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "내용 무결성 검사에 실패했습니다. 내용을 사용 할 수 없습니다." ++msgstr "보안 내용의 무결성 검사가 실패했습니다." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "내용 가져오기와 적재 오류" ++msgstr "가져오기와 보안 내용 적재 중에 오류가 발생하였습니다:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "제시된 내용에 예상치 못한 문제가 있습니다." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "설정 오류가 감지되었습니다" ++msgstr "잘못된 구성이 감지되었습니다!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +diff -U3 -N -r a/po/oscap-anaconda-addon.pot b/po/oscap-anaconda-addon.pot +--- a/po/oscap-anaconda-addon.pot 2021-07-02 15:52:56.000000000 +0200 ++++ b/po/oscap-anaconda-addon.pot 2022-01-24 15:40:42.978286863 +0100 +@@ -8,7 +8,7 @@ + msgstr "" + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" +-"POT-Creation-Date: 2021-07-02 15:52+0200\n" ++"POT-Creation-Date: 2021-08-20 17:44+0200\n" + "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" + "Last-Translator: FULL NAME \n" + "Language-Team: LANGUAGE \n" +@@ -22,10 +22,11 @@ + msgid "Error extracting archive as a zipfile: {exc}" + msgstr "" + +-#: ../org_fedora_oscap/content_discovery.py:189 ++#: ../org_fedora_oscap/content_discovery.py:190 + #, python-brace-format + msgid "" +-"Integrity check of the content failed - {hash_obj.name} hash didn't match" ++"OSCAP Addon: Integrity check of the content failed - {hash_obj.name} hash " ++"didn't match" + msgstr "" + + #: ../org_fedora_oscap/data_fetch.py:117 +@@ -137,23 +138,32 @@ + "firewall" + msgstr "" + ++#: ../org_fedora_oscap/ks/oscap.py:375 ++#: ../org_fedora_oscap/service/installation.py:56 ++msgid "The installation should be aborted." ++msgstr "" ++ ++#: ../org_fedora_oscap/ks/oscap.py:376 ++msgid "Do you wish to continue anyway?" ++msgstr "" ++ ++#: ../org_fedora_oscap/ks/oscap.py:399 + #: ../org_fedora_oscap/service/installation.py:41 + msgid "The integrity check of the security content failed." + msgstr "" + ++#: ../org_fedora_oscap/ks/oscap.py:403 + #: ../org_fedora_oscap/service/installation.py:46 + msgid "There was an error fetching and loading the security content:\n" + msgstr "" + ++#: ../org_fedora_oscap/ks/oscap.py:408 + #: ../org_fedora_oscap/service/installation.py:51 +-#: ../org_fedora_oscap/gui/spokes/oscap.py:793 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:803 + msgid "There was an unexpected problem with the supplied content." + msgstr "" + +-#: ../org_fedora_oscap/service/installation.py:56 +-msgid "The installation should be aborted." +-msgstr "" +- ++#: ../org_fedora_oscap/ks/oscap.py:461 + #: ../org_fedora_oscap/service/installation.py:148 + msgid "Wrong configuration detected!" + msgstr "" +@@ -178,97 +188,97 @@ + msgid "Not ready" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:393 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:403 + msgid "Fetching content data" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:431 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:441 + msgid "Fetch complete, analyzing data." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:643 +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1072 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:653 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1077 + msgid "No profile selected" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:648 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:658 + msgid "No rules for the pre-installation phase" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:801 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:811 + msgid "Invalid content provided. Enter a different URL, please." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:809 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:819 + msgid "Invalid or unsupported content URL, please enter a different one." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:817 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:827 + msgid "Failed to fetch content. Enter a different URL, please." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:825 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:835 + msgid "" + "Network error encountered when fetching data. Please check that network is " + "setup and working." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:834 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:844 + msgid "The integrity check of the content failed. Cannot use the content." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:842 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:852 + #, python-format + msgid "Failed to extract content (%s). Enter a different URL, please." + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:860 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:870 + #, python-format + msgid "" + "Profile with ID '%s' not defined in the content. Select a different profile, " + "please" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:879 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:889 + msgid "Not applying security profile" + msgstr "" + + #. TRANSLATORS: the other choice if SCAP Security Guide is also + #. available +-#: ../org_fedora_oscap/gui/spokes/oscap.py:921 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:926 + msgid " or enter data stream content or archive URL below:" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:925 tmp/oscap.glade.h:12 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:930 tmp/oscap.glade.h:12 + msgid "" + "No content found. Please enter data stream content or archive URL below:" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1062 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1067 + msgid "Error fetching and loading content" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1069 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1074 + msgid "No content found" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1080 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1085 + msgid "Misconfiguration detected" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1086 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1091 + msgid "Warnings appeared" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1088 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1093 + msgid "Everything okay" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1170 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1177 + msgid "Invalid or unsupported URL" + msgstr "" + +-#: ../org_fedora_oscap/gui/spokes/oscap.py:1176 tmp/oscap.glade.h:14 ++#: ../org_fedora_oscap/gui/spokes/oscap.py:1183 tmp/oscap.glade.h:14 + msgid "Fetching content..." + msgstr "" + +diff -U3 -N -r a/po/pl.po b/po/pl.po +--- a/po/pl.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/pl.po 2022-01-24 15:40:42.975286864 +0100 +@@ -26,40 +26,42 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2020-09-07 11:29+0000\n" ++"PO-Revision-Date: 2021-07-05 13:04+0000\n" + "Last-Translator: Piotr Drąg \n" +-"Language-Team: Polish \n" ++"Language-Team: Polish \n" + "Language: pl\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " + "|| n%100>=20) ? 1 : 2;\n" +-"X-Generator: Weblate 4.2.2\n" ++"X-Generator: Weblate 4.7.1\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "Błąd podczas rozpakowywania archiwum jako pliku ZIP: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" + msgstr "" +-"Sprawdzenie integralności treści się nie powiodło. Nie można użyć treści." ++"Sprawdzenie integralności treści się nie powiodło — suma {hash_obj.name} się " ++"nie zgadza" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Do pobrania danych wymagane jest połączenie sieciowe." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" + msgstr "" ++"Pobranie danych się nie powiodło — żądanie zwróciło kod błędu HTTP " ++"{return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -171,35 +173,28 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "Instalacja powinna zostać przerwana." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "Kontynuować mimo to?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "" +-"Sprawdzenie integralności treści się nie powiodło. Nie można użyć treści." ++msgstr "Sprawdzenie integralności treści bezpieczeństwa się nie powiodło." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "Błąd podczas pobierania i wczytywania treści" ++msgstr "Wystąpił błąd podczas pobierania i wczytywania treści bezpieczeństwa:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "Wystąpił nieoczekiwany problem z dostarczoną treścią." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "Wykryto błędną konfigurację" ++msgstr "Wykryto błędną konfigurację." + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +diff -U3 -N -r a/po/si.po b/po/si.po +--- a/po/si.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/si.po 2022-01-24 15:40:42.975286864 +0100 +@@ -7,13 +7,16 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +-"Last-Translator: Automatically generated\n" +-"Language-Team: none\n" ++"PO-Revision-Date: 2021-08-19 07:04+0000\n" ++"Last-Translator: Hela Basa \n" ++"Language-Team: Sinhala \n" + "Language: si\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" ++"Plural-Forms: nplurals=2; plural=n > 1;\n" ++"X-Generator: Weblate 4.7.2\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format +@@ -168,7 +171,7 @@ + #. the first status provided + #: ../org_fedora_oscap/gui/spokes/oscap.py:229 + msgid "Not ready" +-msgstr "" ++msgstr "සූදානම් නැත" + + #: ../org_fedora_oscap/gui/spokes/oscap.py:383 + msgid "Fetching content data" +diff -U3 -N -r a/po/sv.po b/po/sv.po +--- a/po/sv.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/sv.po 2022-01-24 15:40:42.975286864 +0100 +@@ -4,40 +4,40 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2020-09-08 14:29+0000\n" ++"PO-Revision-Date: 2021-08-07 20:04+0000\n" + "Last-Translator: Göran Uddeborg \n" +-"Language-Team: Swedish \n" ++"Language-Team: Swedish \n" + "Language: sv\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=2; plural=n != 1;\n" +-"X-Generator: Weblate 4.2.2\n" ++"X-Generator: Weblate 4.7.2\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "Fel vid extrahering av arkiv som zipfil: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" + msgstr "" +-"Integritetskontrollen av innehållet misslyckades. Kan inte använda " +-"innehållet." ++"Integritetskontrollen av innehållet misslyckades – {hash_obj.name}-hachen " ++"stämmer inte" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Nätverksanslutning behövs för att hämta data." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" + msgstr "" ++"Det gick inte att hämta data - begäran returnerade HTTP-felkod {return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -140,7 +140,7 @@ + msgid "" + "trust '%s' has been added to the list of trusts to be added to the firewall" + msgstr "" +-"förtroendet ”%s” har lagts till till listan över förtoenden att läggas till " ++"förtroendet ”%s” har lagts till till listan över förtroenden att läggas till " + "i brandväggen" + + #: ../org_fedora_oscap/rule_handling.py:1080 +@@ -155,36 +155,28 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "Installationen bör avbrytas." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "Vill du fortsätta ändå?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "" +-"Integritetskontrollen av innehållet misslyckades. Kan inte använda " +-"innehållet." ++msgstr "Integritetskontrollen av säkerhetsinnehållet misslyckades." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "Fel när innehåll hämtades och laddades" ++msgstr "Det uppstod ett fel när säkerhetsinnehåll hämtades och laddades:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "Det uppstod ett oväntat problem med det levererade innehållet." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "Felkonfiguration upptäckt" ++msgstr "Felkonfiguration upptäckt!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +@@ -194,7 +186,7 @@ + #. the first status provided + #: ../org_fedora_oscap/gui/spokes/oscap.py:229 + msgid "Not ready" +-msgstr "Inte redo" ++msgstr "Inte klar" + + #: ../org_fedora_oscap/gui/spokes/oscap.py:383 + msgid "Fetching content data" +diff -U3 -N -r a/po/uk.po b/po/uk.po +--- a/po/uk.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/uk.po 2022-01-24 15:40:42.975286864 +0100 +@@ -5,39 +5,42 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2020-09-13 14:29+0000\n" ++"PO-Revision-Date: 2021-07-02 15:16+0000\n" + "Last-Translator: Yuri Chornoivan \n" +-"Language-Team: Ukrainian \n" ++"Language-Team: Ukrainian \n" + "Language: uk\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" + "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" + "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +-"X-Generator: Weblate 4.2.2\n" ++"X-Generator: Weblate 4.7.1\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "Помилка під час спроби видобути дані з архіву як файла zip: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" +-msgstr "Дані не пройшли перевірку на цілісність. Їхнє використання неможливе." ++msgstr "" ++"Не пройдено перевірку цілісності даних — хеш {hash_obj.name} не збігається з " ++"еталонним" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "Для отримання даних потрібне з'єднання з мережею." + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" + msgstr "" ++"Не вдалося отримати дані — у відповідь на запит отримано код помилки HTTP " ++"{return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -153,34 +156,29 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "Встановлення слід перервати." + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "Хочете продовжити попри це?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "Дані не пройшли перевірку на цілісність. Їхнє використання неможливе." ++msgstr "Захищені дані не пройшли перевірку на цілісність." + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "Помилка під час спроби отримання та завантаження даних" ++msgstr "" ++"Під час спроби отримання та завантаження захищених даних сталася помилка:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "Виникла непередбачена проблема із наданими даними." + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "Виявлено помилки у налаштуваннях" ++msgstr "Виявлено помилкові налаштування!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +diff -U3 -N -r a/po/zh_CN.po b/po/zh_CN.po +--- a/po/zh_CN.po 2021-07-02 17:17:04.000000000 +0200 ++++ b/po/zh_CN.po 2022-01-24 15:40:42.975286864 +0100 +@@ -5,37 +5,37 @@ + "Project-Id-Version: PACKAGE VERSION\n" + "Report-Msgid-Bugs-To: \n" + "POT-Creation-Date: 2021-06-21 11:51+0200\n" +-"PO-Revision-Date: 2020-06-26 04:26-0400\n" +-"Last-Translator: Copied by Zanata \n" +-"Language-Team: Chinese (Simplified)\n" ++"PO-Revision-Date: 2021-08-20 09:04+0000\n" ++"Last-Translator: Sundeep Anand \n" ++"Language-Team: Chinese (Simplified) \n" + "Language: zh_CN\n" + "MIME-Version: 1.0\n" + "Content-Type: text/plain; charset=UTF-8\n" + "Content-Transfer-Encoding: 8bit\n" +-"Plural-Forms: nplurals=1; plural=0\n" +-"X-Generator: Zanata 4.6.2\n" ++"Plural-Forms: nplurals=1; plural=0;\n" ++"X-Generator: Weblate 4.7.2\n" + + #: ../org_fedora_oscap/common.py:326 + #, python-brace-format + msgid "Error extracting archive as a zipfile: {exc}" +-msgstr "" ++msgstr "解压 zip 文件时出错: {exc}" + + #: ../org_fedora_oscap/content_discovery.py:167 +-#, fuzzy, python-brace-format +-#| msgid "The integrity check of the content failed. Cannot use the content." ++#, python-brace-format + msgid "" + "Integrity check of the content failed - {hash_obj.name} hash didn't match" +-msgstr "内容的完整性检查失败。不能使用这个内容。" ++msgstr "内容完整性检查失败 - {hash_obj.name} 哈希值不匹配" + + #: ../org_fedora_oscap/data_fetch.py:117 + msgid "Network connection needed to fetch data." +-msgstr "" ++msgstr "获取数据所需的网络连接。" + + #: ../org_fedora_oscap/data_fetch.py:262 + #, python-brace-format + msgid "" + "Failed to fetch data - the request returned HTTP error code {return_code}" +-msgstr "" ++msgstr "获取数据失败 - 请求返回 HTTP 错误代码 {return_code}" + + #: ../org_fedora_oscap/rule_handling.py:434 + #, python-brace-format +@@ -142,34 +142,28 @@ + + #: ../org_fedora_oscap/ks/oscap.py:376 + msgid "The installation should be aborted." +-msgstr "" ++msgstr "安装应终止。" + + #: ../org_fedora_oscap/ks/oscap.py:377 + msgid "Do you wish to continue anyway?" +-msgstr "" ++msgstr "您是否希望继续?" + + #: ../org_fedora_oscap/ks/oscap.py:400 +-#, fuzzy +-#| msgid "The integrity check of the content failed. Cannot use the content." + msgid "The integrity check of the security content failed." +-msgstr "内容的完整性检查失败。不能使用这个内容。" ++msgstr "安全内容的完整性检查失败。" + + #: ../org_fedora_oscap/ks/oscap.py:404 +-#, fuzzy +-#| msgid "Error fetching and loading content" + msgid "There was an error fetching and loading the security content:\n" +-msgstr "获取并加载内容错误" ++msgstr "获取并载入安全内容时出错:\n" + + #: ../org_fedora_oscap/ks/oscap.py:409 + #: ../org_fedora_oscap/gui/spokes/oscap.py:774 + msgid "There was an unexpected problem with the supplied content." +-msgstr "" ++msgstr "提供的内容出现意外问题。" + + #: ../org_fedora_oscap/ks/oscap.py:462 +-#, fuzzy +-#| msgid "Misconfiguration detected" + msgid "Wrong configuration detected!" +-msgstr "发现错误配置" ++msgstr "检测到配置错误!" + + #. title of the spoke (will be displayed on the hub) + #: ../org_fedora_oscap/gui/spokes/oscap.py:201 +@@ -236,7 +230,7 @@ + #. available + #: ../org_fedora_oscap/gui/spokes/oscap.py:887 + msgid " or enter data stream content or archive URL below:" +-msgstr "或输入数据流内容或归档 URL:" ++msgstr " 或输入数据流内容或归档 URL:" + + #: ../org_fedora_oscap/gui/spokes/oscap.py:891 tmp/oscap.glade.h:12 + msgid "" diff --git a/SOURCES/oscap-anaconda-addon-1.2.2-dbus_show_integration-PR_182.patch b/SOURCES/oscap-anaconda-addon-1.2.2-dbus_show_integration-PR_182.patch new file mode 100644 index 0000000..b94a864 --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-1.2.2-dbus_show_integration-PR_182.patch @@ -0,0 +1,39 @@ +From 20843d815a82d10cba773f4e10e9a45c57d5e12e Mon Sep 17 00:00:00 2001 +From: Vendula Poncova +Date: Wed, 18 Aug 2021 10:54:20 +0200 +Subject: [PATCH] Don't show the OSCAP spoke if the OSCAP DBus module is + disabled + +Add-ons can be disabled in the Anaconda configuration files. Without the fix, +the OSCAP DBus module is started on demand by the OSCAP spoke even though it +shouldn't be activated. In the future, it will result in a failure of the +installer. + +Related: rhbz#1994003 +--- + org_fedora_oscap/gui/spokes/oscap.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py +index 36c8d7a..fe26076 100644 +--- a/org_fedora_oscap/gui/spokes/oscap.py ++++ b/org_fedora_oscap/gui/spokes/oscap.py +@@ -36,6 +36,7 @@ + from org_fedora_oscap.structures import PolicyData + + from pyanaconda.modules.common.constants.services import USERS ++from pyanaconda.modules.common.util import is_module_available + from pyanaconda.threading import threadMgr, AnacondaThread + from pyanaconda.ui.gui.spokes import NormalSpoke + from pyanaconda.ui.communication import hubQ +@@ -203,6 +204,10 @@ class OSCAPSpoke(NormalSpoke): + # as it is displayed inside the spoke as the spoke label, + # and spoke labels are all uppercase by a convention. + ++ @classmethod ++ def should_run(cls, environment, data): ++ return is_module_available(OSCAP) ++ + # methods defined by API and helper methods # + def __init__(self, data, storage, payload): + """ diff --git a/SOURCES/oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch b/SOURCES/oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch new file mode 100644 index 0000000..82a08c2 --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch @@ -0,0 +1,14 @@ +diff --git a/org_fedora_oscap/content_discovery.py b/org_fedora_oscap/content_discovery.py +index bc14ef1..ccfe6c8 100644 +--- a/org_fedora_oscap/content_discovery.py ++++ b/org_fedora_oscap/content_discovery.py +@@ -225,7 +225,8 @@ def _gather_available_files(self, actually_fetched_content, dest_filename): + if not dest_filename: # using scap-security-guide + fpaths = [self.DEFAULT_SSG_DATA_STREAM_PATH] + else: # Using downloaded XCCDF/OVAL/DS/tailoring +- fpaths = glob(str(self.CONTENT_DOWNLOAD_LOCATION / "*.xml")) ++ fpaths = pathlib.Path(self.CONTENT_DOWNLOAD_LOCATION).rglob("*") ++ fpaths = [str(p) for p in fpaths if p.is_file()] + else: + dest_filename = pathlib.Path(dest_filename) + # RPM is an archive at this phase diff --git a/SOURCES/oscap-anaconda-addon-2.0.1-fix_fingerprint-PR_177.patch b/SOURCES/oscap-anaconda-addon-2.0.1-fix_fingerprint-PR_177.patch new file mode 100644 index 0000000..ecdc065 --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-2.0.1-fix_fingerprint-PR_177.patch @@ -0,0 +1,22 @@ +From c72b95146650b0debc36b8da546b60a9d5482ab3 Mon Sep 17 00:00:00 2001 +From: Matej Tyc +Date: Fri, 15 Oct 2021 15:28:24 +0200 +Subject: [PATCH] Fix bad destination for the parsed content fingerprint + +--- + org_fedora_oscap/service/kickstart.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/org_fedora_oscap/service/kickstart.py b/org_fedora_oscap/service/kickstart.py +index d6f22ac..dc1a100 100644 +--- a/org_fedora_oscap/service/kickstart.py ++++ b/org_fedora_oscap/service/kickstart.py +@@ -140,7 +140,7 @@ def _parse_fingerprint(self, value): + msg = "Unsupported fingerprint" + raise KickstartValueError(msg) + +- self.fingerprint = value ++ self.policy_data.fingerprint = value + + def _parse_certificates(self, value): + self.policy_data.certificates = value diff --git a/SOURCES/oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch b/SOURCES/oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch new file mode 100644 index 0000000..4ef965d --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch @@ -0,0 +1,32 @@ +From 56806b88b139d62276e8522bb3daf7d4fb02df84 Mon Sep 17 00:00:00 2001 +From: Matej Tyc +Date: Fri, 15 Oct 2021 15:05:55 +0200 +Subject: [PATCH] Represent unselected profile by an empty string + +None can't be passed via the DBUS interface. +--- + org_fedora_oscap/gui/spokes/oscap.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py +index 4425757..36c8d7a 100644 +--- a/org_fedora_oscap/gui/spokes/oscap.py ++++ b/org_fedora_oscap/gui/spokes/oscap.py +@@ -244,7 +244,7 @@ def __init__(self, data, storage, payload): + self.__old_root_pw = None + + # used to check if the profile was changed or not +- self._active_profile = None ++ self._active_profile = "" + + # prevent multiple simultaneous data fetches + self._fetching = False +@@ -719,7 +719,7 @@ def _unselect_profile(self, profile_id): + self._revert_rootpw_changes() + self._rule_data = None + +- self._active_profile = None ++ self._active_profile = "" + + @async_action_wait + def _select_profile(self, profile_id): diff --git a/SOURCES/oscap-anaconda-addon-2.0.1-rhel9_tailoring_fix-PR_180.patch b/SOURCES/oscap-anaconda-addon-2.0.1-rhel9_tailoring_fix-PR_180.patch new file mode 100644 index 0000000..f56fc1e --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-2.0.1-rhel9_tailoring_fix-PR_180.patch @@ -0,0 +1,29 @@ +From a306b736f144260721dfae25f0b268353d6760c5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= +Date: Thu, 25 Nov 2021 15:15:14 +0100 +Subject: [PATCH] Fix tailoring + +Fixes an error during installation caused during tailoring + +Addressing: +dasbus.error.DBusError: Content evaluation and remediation with the oscap tool failed: OpenSCAP Error: Unable to open file: '/tmp/openscap_data/usr/share/xml/scap/sc_tailoring/tailoring-xccdf.xml' [/builddir/build/BUILD/openscap-1.3.5/src/source/oscap_source.c:288] + +This is proabably a typo coming from 87509fb6ee22b6eeaa66ea4ae85ebf5abd353e14 +which is only in rhel9-branch. +--- + org_fedora_oscap/service/oscap.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/org_fedora_oscap/service/oscap.py b/org_fedora_oscap/service/oscap.py +index 4237a47..65da08b 100755 +--- a/org_fedora_oscap/service/oscap.py ++++ b/org_fedora_oscap/service/oscap.py +@@ -221,7 +221,7 @@ def install_with_tasks(self): + sysroot=conf.target.system_root, + policy_data=self.policy_data, + target_content_path=common.get_postinst_content_path(self.policy_data), +- target_tailoring_path=common.get_preinst_tailoring_path(self.policy_data) ++ target_tailoring_path=common.get_postinst_tailoring_path(self.policy_data) + ) + ] + diff --git a/SOURCES/oscap-anaconda-addon-2.0.1-various_bugfixes-PR_166.patch b/SOURCES/oscap-anaconda-addon-2.0.1-various_bugfixes-PR_166.patch new file mode 100644 index 0000000..b137b6b --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-2.0.1-various_bugfixes-PR_166.patch @@ -0,0 +1,460 @@ +From aeb0e2ed5a524c5d4e5b72b2b11ea74a5119d45a Mon Sep 17 00:00:00 2001 +From: Matej Tyc +Date: Mon, 2 Aug 2021 17:23:17 +0200 +Subject: [PATCH 1/3] Improve logging + +Make all log entries identifiable easily. +--- + org_fedora_oscap/common.py | 4 ++-- + org_fedora_oscap/content_discovery.py | 16 +++++++++++----- + org_fedora_oscap/gui/spokes/oscap.py | 19 ++++++++++++------- + org_fedora_oscap/rule_handling.py | 8 ++++---- + org_fedora_oscap/service/installation.py | 6 +++--- + org_fedora_oscap/service/kickstart.py | 2 +- + org_fedora_oscap/service/oscap.py | 12 ++++++------ + 7 files changed, 39 insertions(+), 28 deletions(-) + +diff --git a/org_fedora_oscap/common.py b/org_fedora_oscap/common.py +index a307baa..c432168 100644 +--- a/org_fedora_oscap/common.py ++++ b/org_fedora_oscap/common.py +@@ -564,7 +564,7 @@ def get_content_name(data): + def get_raw_preinst_content_path(data): + """Path to the raw (unextracted, ...) pre-installation content file""" + if data.content_type == "scap-security-guide": +- log.debug("Using scap-security-guide, no single content file") ++ log.debug("OSCAP addon: Using scap-security-guide, no single content file") + return None + + content_name = get_content_name(data) +@@ -667,7 +667,7 @@ def set_packages_data(data: PackagesConfigurationData): + payload_proxy = get_payload_proxy() + + if payload_proxy.Type != PAYLOAD_TYPE_DNF: +- log.debug("The payload doesn't support packages.") ++ log.debug("OSCAP addon: The payload doesn't support packages.") + return + + return payload_proxy.SetPackages( +diff --git a/org_fedora_oscap/content_discovery.py b/org_fedora_oscap/content_discovery.py +index 894f3e1..bc14ef1 100644 +--- a/org_fedora_oscap/content_discovery.py ++++ b/org_fedora_oscap/content_discovery.py +@@ -98,7 +98,7 @@ def fetch_content(self, what_if_fail, ca_certs_path=""): + def _fetch_files(self, scheme, path, destdir, ca_certs_path, what_if_fail): + with self.activity_lock: + if self.now_fetching_or_processing: +- msg = "Strange, it seems that we are already fetching something." ++ msg = "OSCAP Addon: Strange, it seems that we are already fetching something." + log.warn(msg) + return + self.now_fetching_or_processing = True +@@ -175,7 +175,7 @@ def finish_content_fetch(self, fetching_thread_name, fingerprint, report_callbac + + def _verify_fingerprint(self, dest_filename, fingerprint=""): + if not fingerprint: +- log.info("No fingerprint provided, skipping integrity check") ++ log.info("OSCAP Addon: No fingerprint provided, skipping integrity check") + return + + hash_obj = utils.get_hashing_algorithm(fingerprint) +@@ -183,15 +183,19 @@ def _verify_fingerprint(self, dest_filename, fingerprint=""): + hash_obj) + if digest != fingerprint: + log.error( ++ "OSCAP Addon: " + f"File {dest_filename} failed integrity check - assumed a " + f"{hash_obj.name} hash and '{fingerprint}', got '{digest}'" + ) +- msg = _(f"Integrity check of the content failed - {hash_obj.name} hash didn't match") ++ msg = _(f"OSCAP Addon: Integrity check of the content failed - {hash_obj.name} hash didn't match") + raise content_handling.ContentCheckError(msg) + log.info(f"Integrity check passed using {hash_obj.name} hash") + + def _finish_actual_fetch(self, wait_for, fingerprint, report_callback, dest_filename): +- threadMgr.wait(wait_for) ++ if wait_for: ++ log.info(f"OSCAP Addon: Waiting for thread {wait_for}") ++ threadMgr.wait(wait_for) ++ log.info(f"OSCAP Addon: Finished waiting for thread {wait_for}") + actually_fetched_content = wait_for is not None + + if fingerprint and dest_filename: +@@ -201,6 +205,7 @@ def _finish_actual_fetch(self, wait_for, fingerprint, report_callback, dest_file + + structured_content = ObtainedContent(self.CONTENT_DOWNLOAD_LOCATION) + content_type = self.get_content_type(str(dest_filename)) ++ log.info(f"OSCAP Addon: started to look at the content") + if content_type in ("archive", "rpm"): + structured_content.add_content_archive(dest_filename) + +@@ -211,6 +216,7 @@ def _finish_actual_fetch(self, wait_for, fingerprint, report_callback, dest_file + if fingerprint and dest_filename: + structured_content.record_verification(dest_filename) + ++ log.info(f"OSCAP Addon: finished looking at the content") + return structured_content + + def _gather_available_files(self, actually_fetched_content, dest_filename): +@@ -232,7 +238,7 @@ def _gather_available_files(self, actually_fetched_content, dest_filename): + ) + except common.ExtractionError as err: + msg = f"Failed to extract the '{dest_filename}' archive: {str(err)}" +- log.error(msg) ++ log.error("OSCAP Addon: " + msg) + raise err + + elif content_type == "file": +diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py +index 76e508f..332e956 100644 +--- a/org_fedora_oscap/gui/spokes/oscap.py ++++ b/org_fedora_oscap/gui/spokes/oscap.py +@@ -331,6 +331,7 @@ def initialize(self): + + # if no content was specified and SSG is available, use it + if not self._policy_data.content_type and common.ssg_available(): ++ log.info("OSCAP Addon: Defaulting to local content") + self._policy_data.content_type = "scap-security-guide" + self._policy_data.content_path = common.SSG_DIR + common.SSG_CONTENT + +@@ -351,7 +352,7 @@ def initialize(self): + self._fetch_data_and_initialize() + + def _handle_error(self, exception): +- log.error(str(exception)) ++ log.error("OSCAP Addon: " + str(exception)) + if isinstance(exception, KickstartValueError): + self._invalid_url() + elif isinstance(exception, common.OSCAPaddonNetworkError): +@@ -365,7 +366,7 @@ def _handle_error(self, exception): + elif isinstance(exception, content_handling.ContentCheckError): + self._integrity_check_failed() + else: +- log.exception("Unknown exception occurred", exc_info=exception) ++ log.exception("OSCAP Addon: Unknown exception occurred", exc_info=exception) + self._general_content_problem() + + def _render_selected(self, column, renderer, model, itr, user_data=None): +@@ -385,6 +386,7 @@ def _fetch_data_and_initialize(self): + + thread_name = None + if self._policy_data.content_url and self._policy_data.content_type != "scap-security-guide": ++ log.info(f"OSCAP Addon: Actually fetching content from somewhere") + thread_name = self.content_bringer.fetch_content( + self._handle_error, self._policy_data.certificates) + +@@ -442,7 +444,7 @@ def update_progress_label(msg): + msg += f" with tailoring {preinst_tailoring_path}" + else: + msg += " without considering tailoring" +- log.info(msg) ++ log.info("OSCAP Addon: " + msg) + + self._content_handler = scap_content_handler.SCAPContentHandler( + preinst_content_path, +@@ -456,7 +458,7 @@ def update_progress_label(msg): + + return + +- log.info("OAA: Done with analysis") ++ log.info("OSCAP Addon: Done with analysis") + + self._ds_checklists = self._content_handler.get_data_streams_checklists() + if self._using_ds: +@@ -592,7 +594,7 @@ def _update_profiles_store(self): + try: + profiles = self._content_handler.get_profiles() + except scap_content_handler.SCAPContentHandlerError as e: +- log.warning(str(e)) ++ log.warning("OSCAP Addon: " + str(e)) + self._invalid_content() + + for profile in profiles: +@@ -736,7 +738,7 @@ def _select_profile(self, profile_id): + ds, xccdf, common.get_preinst_tailoring_path(self._policy_data)) + except common.OSCAPaddonError as exc: + log.error( +- "Failed to get rules for the profile '{}': {}" ++ "OSCAP Addon: Failed to get rules for the profile '{}': {}" + .format(profile_id, str(exc))) + self._set_error( + "Failed to get rules for the profile '{}'" +@@ -908,6 +910,7 @@ def refresh(self): + def _refresh_ui(self): + """Refresh the UI elements.""" + if not self._content_defined: ++ log.info("OSCAP Addon: Content not defined") + # hide the control buttons + really_hide(self._control_buttons) + +@@ -1156,7 +1159,9 @@ def on_fetch_button_clicked(self, *args): + with self._fetch_flag_lock: + if self._fetching: + # some other fetching/pre-processing running, give up +- log.warn("Clicked the fetch button, although the GUI is in the fetching mode.") ++ log.warn( ++ "OSCAP Addon: " ++ "Clicked the fetch button, although the GUI is in the fetching mode.") + return + + # prevent user from changing the URL in the meantime +diff --git a/org_fedora_oscap/rule_handling.py b/org_fedora_oscap/rule_handling.py +index c478aa0..244aac8 100644 +--- a/org_fedora_oscap/rule_handling.py ++++ b/org_fedora_oscap/rule_handling.py +@@ -261,7 +261,7 @@ def new_rule(self, rule): + try: + actions[first_word](rule) + except (ModifiedOptionParserException, KeyError) as e: +- log.warning("Unknown OSCAP Addon rule '{}': {}".format(rule, e)) ++ log.warning("OSCAP Addon: Unknown OSCAP Addon rule '{}': {}".format(rule, e)) + + def eval_rules(self, ksdata, storage, report_only=False): + """:see: RuleHandler.eval_rules""" +@@ -565,7 +565,7 @@ def eval_rules(self, ksdata, storage, report_only=False): + # root password set + if users_proxy.IsRootPasswordCrypted: + msg = _("cannot check root password length (password is crypted)") +- log.warning("cannot check root password length (password is crypted)") ++ log.warning("OSCAP Addon: cannot check root password length (password is crypted)") + return [RuleMessage(self.__class__, + common.MESSAGE_TYPE_WARNING, msg)] + elif len(users_proxy.RootPassword) < self._minlen: +@@ -880,7 +880,7 @@ def eval_rules(self, ksdata, storage, report_only=False): + + kdump_proxy.KdumpEnabled = self._kdump_enabled + else: +- log.warning("com_redhat_kdump is not installed. " ++ log.warning("OSCAP Addon: com_redhat_kdump is not installed. " + "Skipping kdump configuration") + + return messages +@@ -894,7 +894,7 @@ def revert_changes(self, ksdata, storage): + if self._kdump_enabled is not None: + kdump_proxy.KdumpEnabled = self._kdump_default_enabled + else: +- log.warning("com_redhat_kdump is not installed. " ++ log.warning("OSCAP Addon: com_redhat_kdump is not installed. " + "Skipping reverting kdump configuration") + + self._kdump_enabled = None +diff --git a/org_fedora_oscap/service/installation.py b/org_fedora_oscap/service/installation.py +index e3a1d0f..2da8559 100644 +--- a/org_fedora_oscap/service/installation.py ++++ b/org_fedora_oscap/service/installation.py +@@ -28,14 +28,14 @@ + from org_fedora_oscap.content_handling import ContentCheckError + from org_fedora_oscap import content_discovery + +-log = logging.getLogger(__name__) ++log = logging.getLogger("anaconda") + + + REQUIRED_PACKAGES = ("openscap", "openscap-scanner",) + + + def _handle_error(exception): +- log.error("Failed to fetch and initialize SCAP content!") ++ log.error("OSCAP Addon: Failed to fetch and initialize SCAP content!") + + if isinstance(exception, ContentCheckError): + msg = _("The integrity check of the security content failed.") +@@ -87,7 +87,7 @@ def run(self): + + content = self.content_bringer.finish_content_fetch( + fetching_thread_name, self._policy_data.fingerprint, +- lambda msg: log.info(msg), content_dest, _handle_error) ++ lambda msg: log.info("OSCAP Addon: " + msg), content_dest, _handle_error) + + if not content: + # this shouldn't happen because error handling is supposed to +diff --git a/org_fedora_oscap/service/kickstart.py b/org_fedora_oscap/service/kickstart.py +index 341c6c5..d6f22ac 100644 +--- a/org_fedora_oscap/service/kickstart.py ++++ b/org_fedora_oscap/service/kickstart.py +@@ -25,7 +25,7 @@ + from org_fedora_oscap import common, utils + from org_fedora_oscap.structures import PolicyData + +-log = logging.getLogger(__name__) ++log = logging.getLogger("anaconda") + + __all__ = ["OSCAPKickstartSpecification"] + +diff --git a/org_fedora_oscap/service/oscap.py b/org_fedora_oscap/service/oscap.py +index d491060..4237a47 100755 +--- a/org_fedora_oscap/service/oscap.py ++++ b/org_fedora_oscap/service/oscap.py +@@ -34,7 +34,7 @@ + from org_fedora_oscap.service.oscap_interface import OSCAPInterface + from org_fedora_oscap.structures import PolicyData + +-log = logging.getLogger(__name__) ++log = logging.getLogger("anaconda") + + __all__ = ["OSCAPService"] + +@@ -71,7 +71,7 @@ def policy_enabled(self, value): + """ + self._policy_enabled = value + self.policy_enabled_changed.emit() +- log.debug("Policy enabled is set to '%s'.", value) ++ log.debug("OSCAP Addon: Policy enabled is set to '%s'.", value) + + @property + def policy_data(self): +@@ -89,7 +89,7 @@ def policy_data(self, value): + """ + self._policy_data = value + self.policy_data_changed.emit() +- log.debug("Policy data is set to '%s'.", value) ++ log.debug("OSCAP Addon: Policy data is set to '%s'.", value) + + @property + def installation_enabled(self): +@@ -150,7 +150,7 @@ def collect_requirements(self): + :return: a list of requirements + """ + if not self.installation_enabled: +- log.debug("The installation is disabled. Skip the requirements.") ++ log.debug("OSCAP Addon: The installation is disabled. Skip the requirements.") + return [] + + requirements = [ +@@ -180,7 +180,7 @@ def configure_with_tasks(self): + :return: a list of tasks + """ + if not self.installation_enabled: +- log.debug("The installation is disabled. Skip the configuration.") ++ log.debug("OSCAP Addon: The installation is disabled. Skip the configuration.") + return [] + + tasks = [ +@@ -205,7 +205,7 @@ def install_with_tasks(self): + :return: a list of tasks + """ + if not self.installation_enabled: +- log.debug("The installation is disabled. Skip the installation.") ++ log.debug("OSCAP Addon: The installation is disabled. Skip the installation.") + return [] + + tasks = [ + +From b081e32012b93177167d3f7d0cc2024deb50e965 Mon Sep 17 00:00:00 2001 +From: Matej Tyc +Date: Mon, 2 Aug 2021 17:24:15 +0200 +Subject: [PATCH 2/3] Save addon data when using local content + +Addon loads its data from the shared storage upon refresh, +which caused it to overwrite clicking on the "use SSG content" button. + +Now the data is saved after clicking that button, and convenience +load/save methods were introduced. +--- + org_fedora_oscap/gui/spokes/oscap.py | 27 +++++++++++++++------------ + 1 file changed, 15 insertions(+), 12 deletions(-) + +diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py +index 332e956..4425757 100644 +--- a/org_fedora_oscap/gui/spokes/oscap.py ++++ b/org_fedora_oscap/gui/spokes/oscap.py +@@ -232,11 +232,8 @@ def __init__(self, data, storage, payload): + # the proxy to OSCAP DBus module + self._oscap_module = OSCAP.get_proxy() + +- # the security policy data +- self._policy_enabled = self._oscap_module.PolicyEnabled +- self._policy_data = PolicyData.from_structure( +- self._oscap_module.PolicyData +- ) ++ self._policy_data = PolicyData() ++ self._load_policy_data() + + # used for changing profiles + self._rule_data = None +@@ -334,6 +331,7 @@ def initialize(self): + log.info("OSCAP Addon: Defaulting to local content") + self._policy_data.content_type = "scap-security-guide" + self._policy_data.content_path = common.SSG_DIR + common.SSG_CONTENT ++ self._save_policy_data() + + if not self._content_defined: + # nothing more to be done now, the spoke is ready +@@ -351,6 +349,16 @@ def initialize(self): + # else fetch data + self._fetch_data_and_initialize() + ++ def _save_policy_data(self): ++ self._oscap_module.PolicyData = PolicyData.to_structure(self._policy_data) ++ self._oscap_module.PolicyEnabled = self._policy_enabled ++ ++ def _load_policy_data(self): ++ self._policy_data.update_from(PolicyData.from_structure( ++ self._oscap_module.PolicyData ++ )) ++ self._policy_enabled = self._oscap_module.PolicyEnabled ++ + def _handle_error(self, exception): + log.error("OSCAP Addon: " + str(exception)) + if isinstance(exception, KickstartValueError): +@@ -897,13 +905,7 @@ def refresh(self): + :see: pyanaconda.ui.common.UIObject.refresh + + """ +- # update the security policy data +- self._policy_enabled = self._oscap_module.PolicyEnabled +- fresh_data = PolicyData.from_structure( +- self._oscap_module.PolicyData +- ) +- +- self._policy_data.update_from(fresh_data) ++ self._load_policy_data() + # update the UI elements + self._refresh_ui() + +@@ -1202,4 +1204,5 @@ def on_change_content_clicked(self, *args): + + def on_use_ssg_clicked(self, *args): + self.content_bringer.use_system_content() ++ self._save_policy_data() + self._fetch_data_and_initialize() + +From fee170f54aeb9f649ab891781532012a7b069f8f Mon Sep 17 00:00:00 2001 +From: Matej Tyc +Date: Tue, 3 Aug 2021 11:01:59 +0200 +Subject: [PATCH 3/3] Refactor content identification + +Don't use the multiprocessing pool - it sometimes creates probems during +its initialization: +https://bugzilla.redhat.com/show_bug.cgi?id=1989434 +--- + org_fedora_oscap/content_handling.py | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + +diff --git a/org_fedora_oscap/content_handling.py b/org_fedora_oscap/content_handling.py +index f2af22f..65d5a28 100644 +--- a/org_fedora_oscap/content_handling.py ++++ b/org_fedora_oscap/content_handling.py +@@ -111,9 +111,8 @@ def parse_HTML_from_content(content): + + + def identify_files(fpaths): +- with multiprocessing.Pool(os.cpu_count()) as p: +- labels = p.map(get_doc_type, fpaths) +- return {path: label for (path, label) in zip(fpaths, labels)} ++ result = {path: get_doc_type(path) for path in fpaths} ++ return result + + + def get_doc_type(file_path): +@@ -131,7 +130,9 @@ def get_doc_type(file_path): + except UnicodeDecodeError: + # 'oscap info' supplied weird output, which happens when it tries + # to explain why it can't examine e.g. a JPG. +- return None ++ pass ++ except Exception as e: ++ log.warning(f"OSCAP addon: Unexpected error when looking at {file_path}: {str(e)}") + log.info("OSCAP addon: Identified {file_path} as {content_type}" + .format(file_path=file_path, content_type=content_type)) + return content_type diff --git a/SOURCES/oscap-anaconda-addon-2.1.0-unified_help-PR_192.patch b/SOURCES/oscap-anaconda-addon-2.1.0-unified_help-PR_192.patch new file mode 100644 index 0000000..8f7c7b2 --- /dev/null +++ b/SOURCES/oscap-anaconda-addon-2.1.0-unified_help-PR_192.patch @@ -0,0 +1,52 @@ +From 3d7a943969d542392134f55078eadb0793b094dc Mon Sep 17 00:00:00 2001 +From: Vendula Poncova +Date: Wed, 22 Sep 2021 17:52:03 +0200 +Subject: [PATCH 1/2] Specify a unique screen id + +All spokes and hubs should provide a unique id. +--- + org_fedora_oscap/gui/spokes/oscap.py | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py +index fe26076..44c7ced 100644 +--- a/org_fedora_oscap/gui/spokes/oscap.py ++++ b/org_fedora_oscap/gui/spokes/oscap.py +@@ -204,6 +204,11 @@ class OSCAPSpoke(NormalSpoke): + # as it is displayed inside the spoke as the spoke label, + # and spoke labels are all uppercase by a convention. + ++ @staticmethod ++ def get_screen_id(): ++ """Return a unique id of this UI screen.""" ++ return "security-policy-selection" ++ + @classmethod + def should_run(cls, environment, data): + return is_module_available(OSCAP) + +From ae9fdc9e6e189db215aeb39f2881311e5281587b Mon Sep 17 00:00:00 2001 +From: Vendula Poncova +Date: Wed, 22 Sep 2021 17:52:51 +0200 +Subject: [PATCH 2/2] Remove the help_id attribute + +The help_id attribute is no longer used. Specify a screen id +or redefine the help handler to provide the built-in help. +--- + org_fedora_oscap/gui/spokes/oscap.py | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/org_fedora_oscap/gui/spokes/oscap.py b/org_fedora_oscap/gui/spokes/oscap.py +index 44c7ced..6d0aa5c 100644 +--- a/org_fedora_oscap/gui/spokes/oscap.py ++++ b/org_fedora_oscap/gui/spokes/oscap.py +@@ -185,9 +185,6 @@ class OSCAPSpoke(NormalSpoke): + # name of the .glade file in the same directory as this source + uiFile = "oscap.glade" + +- # id of the help content for this spoke +- help_id = "SecurityPolicySpoke" +- + # domain of oscap-anaconda-addon translations + translationDomain = "oscap-anaconda-addon" + diff --git a/SPECS/oscap-anaconda-addon.spec b/SPECS/oscap-anaconda-addon.spec new file mode 100644 index 0000000..e17683b --- /dev/null +++ b/SPECS/oscap-anaconda-addon.spec @@ -0,0 +1,273 @@ +%if 0%{?rhel} == 8 +%define anaconda_core_version 33 +%endif +%if 0%{?rhel} == 9 +%define anaconda_core_version 34 +%endif +%if 0%{?fedora} +%define anaconda_core_version %{fedora} +%endif + +Name: oscap-anaconda-addon +Version: 2.0.0 +Release: 8%{?dist} +Summary: Anaconda addon integrating OpenSCAP to the installation process + +License: GPLv2+ +URL: https://github.com/OpenSCAP/oscap-anaconda-addon + +Source0: https://github.com/OpenSCAP/oscap-anaconda-addon/releases/download/r%{version}/%{name}-%{version}.tar.gz +# TODO: Remove when the fixed upstream release contains dbus service data +Source1: addon-dbus-data.zip + +Patch1: lang.patch +Patch2: oscap-anaconda-addon-2.0.1-various_bugfixes-PR_166.patch +Patch3: oscap-anaconda-addon-2.0.1-fix_archive_handling-PR_170.patch +Patch4: oscap-anaconda-addon-2.0.1-fix_no_hardening-PR_176.patch +Patch5: oscap-anaconda-addon-2.0.1-fix_fingerprint-PR_177.patch +Patch6: oscap-anaconda-addon-2.0.1-rhel9_tailoring_fix-PR_180.patch +Patch7: oscap-anaconda-addon-1.2.2-dbus_show_integration-PR_182.patch +Patch8: oscap-anaconda-addon-2.1.0-unified_help-PR_192.patch + +BuildArch: noarch +BuildRequires: make +BuildRequires: gettext +BuildRequires: python3-devel +BuildRequires: python3-pycurl +BuildRequires: openscap openscap-utils openscap-python3 +BuildRequires: anaconda-core >= %{anaconda_core_version} +Requires: anaconda-core >= %{anaconda_core_version} +Requires: python3-pycurl +Requires: python3-kickstart +Requires: openscap openscap-utils openscap-python3 +Requires: scap-security-guide + +%description +This is an addon that integrates OpenSCAP utilities with the Anaconda installer +and allows installation of systems following restrictions given by a SCAP +content. + +%prep +%autosetup -p1 +unzip %{_sourcedir}/addon-dbus-data.zip + +%build + +%check + +%install +make install DESTDIR=%{buildroot} +%find_lang %{name} + +%files -f %{name}.lang +%{_datadir}/anaconda/addons/org_fedora_oscap +%{_datadir}/anaconda/dbus/confs/org.fedoraproject.Anaconda.Addons.OSCAP.conf +%{_datadir}/anaconda/dbus/services/org.fedoraproject.Anaconda.Addons.OSCAP.service + +%doc COPYING ChangeLog README.md + +%changelog +* Mon Jan 24 2022 Matej Tyc - 2.0.0-8 +- Introduce unified help support + Resolves: rhbz#2043512 +- Update translations + Resolves: rhbz#2017374 + +* Mon Dec 13 2021 Matej Tyc - 2.0.0-7 +- Don't show the OSCAP spoke if the OSCAP DBus module is disabled + Resolves: rhbz#2018954 + +* Thu Nov 25 2021 Matej Tyc - 2.0.0-6 +- Fix handling of tailoring in RHEL9 + Resolves: rhbz#1996129 + +* Wed Nov 10 2021 Matej Tyc - 2.0.0-5 +- Fix handling of content archives + Resolves: rhbz#1996129 +- Fix handling of content fingerprint + Resolves: rhbz#1993065 +- Fix crash when a previously selected hardening has been cancelled + Resolves: rhbz#2014108 +- Pull latest translations + +* Fri Aug 20 2021 Matej Tyc - 2.0.0-4 +- Update translations + Resolves: rhbz#1962112 + +* Mon Aug 09 2021 Mohan Boddu - 2.0.0-3 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Tue Aug 03 2021 Matej Tyc - 2.0.0-2 +- Fix issues with locally installed content and labelling of discovered content. +- Resolves: rhbz#1989434 + +* Fri Jul 02 2021 Matej Tyc - 2.0.0-1 +- Rebase to the 2.0.0 upstream release. +- Remove the cpio dependency which is not needed any more. + +* Wed Jun 23 2021 Jan Černý - 1.0-11 +- Rebuild after test config change in test.yml + +* Mon Jun 14 2021 Matej Tyc - 1.0-10 +- Unified the spec file with the Fedora one. +- Removed unwanted dependencies. +- nose is not needed for a long time. +- mock has been moved into the Python standard library, so it is also not needed. + +* Fri Apr 16 2021 Mohan Boddu - 1.0-9 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Tue Jan 26 2021 Fedora Release Engineering - 1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Aug 12 2019 Matěj Týč - 1.0-5 +- Disabled execution of tests, as they are not meant to be executed in the build environment. + +* Thu Jul 25 2019 Fedora Release Engineering - 1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jul 03 2018 Matěj Týč - 1.0-1 +- Rebased to upstream version 1.0 +- Python3 support, anaconda 28 support. + +* Fri Feb 09 2018 Igor Gnatenko - 0.7-7 +- Escape macros in %%changelog + +* Thu Feb 08 2018 Fedora Release Engineering - 0.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Jan 07 2015 Vratislav Podzimek - 0.7-1 +- Adapt to changes in Anaconda +- Define name of the spoke window +- Set fetching flag to False when extraction error happens +- Remove code that was pushed to the anaconda's sources + +* Fri Feb 28 2014 Vratislav Podzimek - 0.6-2 +- Rebuild with building issues fixed + +* Fri Feb 28 2014 Vratislav Podzimek - 0.6-1 +- Getting status needs to run in the main thread +- Grab focus for the URL entry after switching notebook page +- Clear rule data when unselecting profile +- Update message as part of the initialization +- Add BuildRequires: gettext +- Include translations in the tarball and RPM + +* Fri Feb 28 2014 Vratislav Podzimek - 0.5-1 +- Allow users to change content +- Show and hide control buttons properly +- Fix sensitivity of the URL entry and fetch button +- Add the button allowing users to use SSG content if available +- Fix listing python sources when creating potfile and regenerate it +- Omit the %%addon section from kickstart in dry-run mode +- Implement the dry-run mode in the GUI (trac#2) +- Add UI elements for content changing and dry-run mode +- Check content_defined instead of content_url in the GUI code +- First select the profile, then update the message store +- Remove unused import +- Ignore some more temporary/backup files +- If no content is specified and SSG is available, use it +- New special content type -- SCAP Security Guide +- Fix name of the property used when doing fingerprint check +- Get rid of an unused variable +- Fix data fetch locking to work properly with kickstart installations +- Use 'anonymous:' if no username and password is given for FTP +- Initial version of the translations template file +- First steps to dry-run mode +- Fix main notebook tabs +- Make translations work +- Manipulation with the i18n related files +- If no profile is given, default to default +- Ignore updates.img and its auxiliary directory +- Catch only fetching errors from the fetching thread +- Do not allow multiple simultaneous fetches/initializations +- Prevent user from changing the URL while we try to fetch from it +- Add support for the Default profile +- Support FTP as a content source (#1050980) +- React properly on archive extraction failure +- Refactor the code pre-processing the fetched content +- Unify exceptions from archive extraction +- Make pylint check mandatory to pass +- Support for hash based content integrity checking + +* Tue Jan 14 2014 Vratislav Podzimek - 0.4-1 +- Beware of running Gtk actions from a non-main thread +- Fix path to the tailoring file when getting rules +- A git hook for running tests when pushing +- Inform user if no profile is selected +- Visually mark the selected profile +- Better UX with content URL entry and progress label +- React on invalid content properly (#1032846) +- Stop spinner when data fetching is finished +- Make the data fetching thread non-fatal (#1049989) +- Exit code 2 from the oscap tool is not an error for us (#1050913) +- Be ready to work with archives/RPMs containing data streams +- Add unit tests for the keep_type_map function +- Add support for namedtuples to keep_type_map +- Add target for running pylint check +- Add target for running just unittests +- On the way to tailoring +- Tests for kickstart XCCDF tailoring handling +- Kickstart support for XCCDF tailoring +- Check session validity also when using XCCDF benchmark + +* Tue Dec 10 2013 Vratislav Podzimek - 0.3-1 +- Implement and use our own better function for joining paths +- The content entry should have focus if there is no content +- RPM is just a weird archive in the pre-installation phase +- Ignore RPM files as well +- Adapt tests to dir constants now ending with "/" +- CpioArchive cannot be created from a piped output +- Fix namespace definitions in the testing XCCDF file +- Prevent putting None into xccdf_session_is_sds +- Fix the __all__ variable in the common module +- Strip content dir prefix when setting xccdf/cpe paths +- Inform user we now support archive URLs as well +- Ignore various file types in the git repository +- Try to find content files in the fetched archive or RPM +- Run pylint -E as part of the test target +- Return list of extracted files/directories when extracting archive +- Do not try to search for empty file paths in archives +- Properly set the content type based on the URL's suffix +- Switch profiles on double-click +- Hook urlEntry's activate signal to fetchButton click +- Save the spoke's glade file with a new Glade +- The addon now requires the python-cpio package +- Use really_hide for the UI elements for datastream-id and xccdf-id +- Support for RPM content in the GUI spoke +- RPM content support for kickstart processing +- Add property for the raw post-installation content path +- Make content type case insensitive +- Rest of the code needed for RPM extraction +- Actually look for the file path in entry names +- Basic stuff needed for the RPM content support +- Run tests in paralel +- Specify files in a better way in spec + +* Mon Oct 21 2013 Vratislav Podzimek - 0.2-1 +- Initial RPM for the oscap-anaconda-addon