diff --git a/oval/c10f2/ALT-PU-2024-7054/definitions.json b/oval/c10f2/ALT-PU-2024-7054/definitions.json new file mode 100644 index 0000000000..e6a8a3cf53 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-7054/definitions.json @@ -0,0 +1,73 @@ +{ + "Definition": [ + { + "ID": "oval:org.altlinux.errata:def:20247054", + "Version": "oval:org.altlinux.errata:def:20247054", + "Class": "patch", + "Metadata": { + "Title": "ALT-PU-2024-7054: package `alterator-l10n` update to version 2.9.142-alt0.c10.1", + "AffectedList": [ + { + "Family": "unix", + "Platforms": [ + "ALT Linux branch c10f2" + ] + } + ], + "References": [ + { + "RefID": "ALT-PU-2024-7054", + "RefURL": "https://errata.altlinux.org/ALT-PU-2024-7054", + "Source": "ALTPU" + } + ], + "Description": "This update upgrades alterator-l10n to version 2.9.142-alt0.c10.1. \nSecurity Fix(es):\n\n * #48969: Поправить опечатку в замечании к обновлению ядра", + "Advisory": { + "From": "errata.altlinux.org", + "Severity": "Low", + "Rights": "Copyright 2024 BaseALT Ltd.", + "Issued": { + "Date": "2024-04-25" + }, + "Updated": { + "Date": "2024-04-25" + }, + "BDUs": null, + "Bugzilla": [ + { + "ID": "48969", + "Href": "https://bugzilla.altlinux.org/48969", + "Data": "Поправить опечатку в замечании к обновлению ядра" + } + ], + "AffectedCPEs": { + "CPEs": [ + "cpe:/o:alt:spworkstation:10", + "cpe:/o:alt:spserver:10" + ] + } + } + }, + "Criteria": { + "Operator": "AND", + "Criterions": [ + { + "TestRef": "oval:org.altlinux.errata:tst:5001", + "Comment": "ALT Linux must be installed" + } + ], + "Criterias": [ + { + "Operator": "OR", + "Criterions": [ + { + "TestRef": "oval:org.altlinux.errata:tst:20247054001", + "Comment": "alterator-l10n is earlier than 0:2.9.142-alt0.c10.1" + } + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/oval/c10f2/ALT-PU-2024-7054/objects.json b/oval/c10f2/ALT-PU-2024-7054/objects.json new file mode 100644 index 0000000000..834f3d2822 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-7054/objects.json @@ -0,0 +1,34 @@ +{ + "TextFileContent54Objects": [ + { + "ID": "oval:org.altlinux.errata:obj:5001", + "Version": "1", + "Comment": "Evaluate `/etc/os-release` file content", + "Path": { + "Datatype": "string", + "Text": "/etc" + }, + "Filepath": { + "Datatype": "string", + "Text": "os-release" + }, + "Pattern": { + "Datatype": "string", + "Operation": "pattern match", + "Text": "cpe:\\/o:alt:sp(?:server|workstation):(\\d+)" + }, + "Instance": { + "Datatype": "int", + "Text": "1" + } + } + ], + "RPMInfoObjects": [ + { + "ID": "oval:org.altlinux.errata:obj:20247054001", + "Version": "1", + "Comment": "alterator-l10n is installed", + "Name": "alterator-l10n" + } + ] +} \ No newline at end of file diff --git a/oval/c10f2/ALT-PU-2024-7054/states.json b/oval/c10f2/ALT-PU-2024-7054/states.json new file mode 100644 index 0000000000..45fb793927 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-7054/states.json @@ -0,0 +1,23 @@ +{ + "TextFileContent54State": [ + { + "ID": "oval:org.altlinux.errata:ste:5001", + "Version": "1", + "Text": {} + } + ], + "RPMInfoStates": [ + { + "ID": "oval:org.altlinux.errata:ste:20247054001", + "Version": "1", + "Comment": "package EVR is earlier than 0:2.9.142-alt0.c10.1", + "Arch": {}, + "EVR": { + "Text": "0:2.9.142-alt0.c10.1", + "Datatype": "evr_string", + "Operation": "less than" + }, + "Subexpression": {} + } + ] +} \ No newline at end of file diff --git a/oval/c10f2/ALT-PU-2024-7054/tests.json b/oval/c10f2/ALT-PU-2024-7054/tests.json new file mode 100644 index 0000000000..4a5e06a156 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-7054/tests.json @@ -0,0 +1,30 @@ +{ + "TextFileContent54Tests": [ + { + "ID": "oval:org.altlinux.errata:tst:5001", + "Version": "1", + "Check": "all", + "Comment": "ALT Linux based on branch 'c10f2' must be installed", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:5001" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:5001" + } + } + ], + "RPMInfoTests": [ + { + "ID": "oval:org.altlinux.errata:tst:20247054001", + "Version": "1", + "Check": "all", + "Comment": "alterator-l10n is earlier than 0:2.9.142-alt0.c10.1", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247054001" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247054001" + } + } + ] +} \ No newline at end of file