diff --git a/oval/c10f2/ALT-PU-2024-2833/definitions.json b/oval/c10f2/ALT-PU-2024-2833/definitions.json new file mode 100644 index 0000000000..dd209e3586 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-2833/definitions.json @@ -0,0 +1,85 @@ +{ + "Definition": [ + { + "ID": "oval:org.altlinux.errata:def:20242833", + "Version": "oval:org.altlinux.errata:def:20242833", + "Class": "patch", + "Metadata": { + "Title": "ALT-PU-2024-2833: package `proxmox-backup` update to version 3.1.4.1-alt1", + "AffectedList": [ + { + "Family": "unix", + "Platforms": [ + "ALT Linux branch c10f2" + ] + } + ], + "References": [ + { + "RefID": "ALT-PU-2024-2833", + "RefURL": "https://errata.altlinux.org/ALT-PU-2024-2833", + "Source": "ALTPU" + } + ], + "Description": "This update upgrades proxmox-backup to version 3.1.4.1-alt1. \nSecurity Fix(es):\n\n * #49262: Постоянный значок «Загрузка» на панели мониторинга", + "Advisory": { + "From": "errata.altlinux.org", + "Severity": "Low", + "Rights": "Copyright 2024 BaseALT Ltd.", + "Issued": { + "Date": "2024-03-04" + }, + "Updated": { + "Date": "2024-03-04" + }, + "bdu": null, + "Bugzilla": [ + { + "Id": "49262", + "Href": "https://bugzilla.altlinux.org/49262", + "Data": "Постоянный значок «Загрузка» на панели мониторинга" + } + ], + "AffectedCpeList": { + "Cpe": [ + "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:20242833001", + "Comment": "proxmox-backup-client is earlier than 1:3.1.4.1-alt1" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20242833002", + "Comment": "proxmox-backup-docs is earlier than 1:3.1.4.1-alt1" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20242833003", + "Comment": "proxmox-backup-file-restore is earlier than 1:3.1.4.1-alt1" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20242833004", + "Comment": "proxmox-backup-server is earlier than 1:3.1.4.1-alt1" + } + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/oval/c10f2/ALT-PU-2024-2833/objects.json b/oval/c10f2/ALT-PU-2024-2833/objects.json new file mode 100644 index 0000000000..97c0df6c2d --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-2833/objects.json @@ -0,0 +1,52 @@ +{ + "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:20242833001", + "Version": "1", + "comment": "proxmox-backup-client is installed", + "Name": "proxmox-backup-client" + }, + { + "ID": "oval:org.altlinux.errata:obj:20242833002", + "Version": "1", + "comment": "proxmox-backup-docs is installed", + "Name": "proxmox-backup-docs" + }, + { + "ID": "oval:org.altlinux.errata:obj:20242833003", + "Version": "1", + "comment": "proxmox-backup-file-restore is installed", + "Name": "proxmox-backup-file-restore" + }, + { + "ID": "oval:org.altlinux.errata:obj:20242833004", + "Version": "1", + "comment": "proxmox-backup-server is installed", + "Name": "proxmox-backup-server" + } + ] +} \ No newline at end of file diff --git a/oval/c10f2/ALT-PU-2024-2833/states.json b/oval/c10f2/ALT-PU-2024-2833/states.json new file mode 100644 index 0000000000..c730266aa0 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-2833/states.json @@ -0,0 +1,23 @@ +{ + "TextFileContent54State": [ + { + "ID": "oval:org.altlinux.errata:ste:5001", + "Version": "1", + "Text": {} + } + ], + "RpmInfoState": [ + { + "ID": "oval:org.altlinux.errata:ste:20242833001", + "Version": "1", + "Comment": "package EVR is earlier than 1:3.1.4.1-alt1", + "Arch": {}, + "Evr": { + "Text": "1:3.1.4.1-alt1", + "Datatype": "evr_string", + "Operation": "less than" + }, + "Subexpression": {} + } + ] +} \ No newline at end of file diff --git a/oval/c10f2/ALT-PU-2024-2833/tests.json b/oval/c10f2/ALT-PU-2024-2833/tests.json new file mode 100644 index 0000000000..2aa2df36f2 --- /dev/null +++ b/oval/c10f2/ALT-PU-2024-2833/tests.json @@ -0,0 +1,66 @@ +{ + "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:20242833001", + "Version": "1", + "Check": "all", + "Comment": "proxmox-backup-client is earlier than 1:3.1.4.1-alt1", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20242833001" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20242833001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20242833002", + "Version": "1", + "Check": "all", + "Comment": "proxmox-backup-docs is earlier than 1:3.1.4.1-alt1", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20242833002" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20242833001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20242833003", + "Version": "1", + "Check": "all", + "Comment": "proxmox-backup-file-restore is earlier than 1:3.1.4.1-alt1", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20242833003" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20242833001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20242833004", + "Version": "1", + "Check": "all", + "Comment": "proxmox-backup-server is earlier than 1:3.1.4.1-alt1", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20242833004" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20242833001" + } + } + ] +} \ No newline at end of file