diff --git a/oval/p10/ALT-PU-2024-7136/definitions.json b/oval/p10/ALT-PU-2024-7136/definitions.json new file mode 100644 index 0000000000..326c5c3ef3 --- /dev/null +++ b/oval/p10/ALT-PU-2024-7136/definitions.json @@ -0,0 +1,133 @@ +{ + "Definition": [ + { + "ID": "oval:org.altlinux.errata:def:20247136", + "Version": "oval:org.altlinux.errata:def:20247136", + "Class": "patch", + "Metadata": { + "Title": "ALT-PU-2024-7136: package `shadow` update to version 4.5-alt11", + "AffectedList": [ + { + "Family": "unix", + "Platforms": [ + "ALT Linux branch p10" + ], + "Products": [ + "ALT Server", + "ALT Virtualization Server", + "ALT Workstation", + "ALT Workstation K", + "ALT Education", + "Simply Linux", + "Starterkit" + ] + } + ], + "References": [ + { + "RefID": "ALT-PU-2024-7136", + "RefURL": "https://errata.altlinux.org/ALT-PU-2024-7136", + "Source": "ALTPU" + } + ], + "Description": "This update upgrades shadow to version 4.5-alt11. \nSecurity Fix(es):\n\n * #47023: Некорректно создаётся пользователь с нестандартным размещением домашней директории c префиксом", + "Advisory": { + "From": "errata.altlinux.org", + "Severity": "Low", + "Rights": "Copyright 2024 BaseALT Ltd.", + "Issued": { + "Date": "2024-04-28" + }, + "Updated": { + "Date": "2024-04-28" + }, + "BDUs": null, + "Bugzilla": [ + { + "ID": "47023", + "Href": "https://bugzilla.altlinux.org/47023", + "Data": "Некорректно создаётся пользователь с нестандартным размещением домашней директории c префиксом" + } + ], + "AffectedCPEs": { + "CPEs": [ + "cpe:/o:alt:kworkstation:10", + "cpe:/o:alt:workstation:10", + "cpe:/o:alt:server:10", + "cpe:/o:alt:server-v:10", + "cpe:/o:alt:education:10", + "cpe:/o:alt:slinux:10", + "cpe:/o:alt:starterkit:p10", + "cpe:/o:alt:kworkstation:10.1", + "cpe:/o:alt:workstation:10.1", + "cpe:/o:alt:server:10.1", + "cpe:/o:alt:server-v:10.1", + "cpe:/o:alt:education:10.1", + "cpe:/o:alt:slinux:10.1", + "cpe:/o:alt:starterkit:10.1", + "cpe:/o:alt:kworkstation:10.2", + "cpe:/o:alt:workstation:10.2", + "cpe:/o:alt:server:10.2", + "cpe:/o:alt:server-v:10.2", + "cpe:/o:alt:education:10.2", + "cpe:/o:alt:slinux:10.2", + "cpe:/o:alt:starterkit:10.2" + ] + } + } + }, + "Criteria": { + "Operator": "AND", + "Criterions": [ + { + "TestRef": "oval:org.altlinux.errata:tst:2001", + "Comment": "ALT Linux must be installed" + } + ], + "Criterias": [ + { + "Operator": "OR", + "Criterions": [ + { + "TestRef": "oval:org.altlinux.errata:tst:20247136001", + "Comment": "shadow-change is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136002", + "Comment": "shadow-check is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136003", + "Comment": "shadow-convert is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136004", + "Comment": "shadow-edit is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136005", + "Comment": "shadow-groups is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136006", + "Comment": "shadow-log is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136007", + "Comment": "shadow-submap is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136008", + "Comment": "shadow-suite is earlier than 1:4.5-alt11" + }, + { + "TestRef": "oval:org.altlinux.errata:tst:20247136009", + "Comment": "shadow-utils is earlier than 1:4.5-alt11" + } + ] + } + ] + } + } + ] +} \ No newline at end of file diff --git a/oval/p10/ALT-PU-2024-7136/objects.json b/oval/p10/ALT-PU-2024-7136/objects.json new file mode 100644 index 0000000000..715df4e642 --- /dev/null +++ b/oval/p10/ALT-PU-2024-7136/objects.json @@ -0,0 +1,82 @@ +{ + "TextFileContent54Objects": [ + { + "ID": "oval:org.altlinux.errata:obj:2001", + "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)[a-z\\-]+:p?(\\d+)(?:\\.\\d)*" + }, + "Instance": { + "Datatype": "int", + "Text": "1" + } + } + ], + "RPMInfoObjects": [ + { + "ID": "oval:org.altlinux.errata:obj:20247136001", + "Version": "1", + "Comment": "shadow-change is installed", + "Name": "shadow-change" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136002", + "Version": "1", + "Comment": "shadow-check is installed", + "Name": "shadow-check" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136003", + "Version": "1", + "Comment": "shadow-convert is installed", + "Name": "shadow-convert" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136004", + "Version": "1", + "Comment": "shadow-edit is installed", + "Name": "shadow-edit" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136005", + "Version": "1", + "Comment": "shadow-groups is installed", + "Name": "shadow-groups" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136006", + "Version": "1", + "Comment": "shadow-log is installed", + "Name": "shadow-log" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136007", + "Version": "1", + "Comment": "shadow-submap is installed", + "Name": "shadow-submap" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136008", + "Version": "1", + "Comment": "shadow-suite is installed", + "Name": "shadow-suite" + }, + { + "ID": "oval:org.altlinux.errata:obj:20247136009", + "Version": "1", + "Comment": "shadow-utils is installed", + "Name": "shadow-utils" + } + ] +} \ No newline at end of file diff --git a/oval/p10/ALT-PU-2024-7136/states.json b/oval/p10/ALT-PU-2024-7136/states.json new file mode 100644 index 0000000000..9b789dcf98 --- /dev/null +++ b/oval/p10/ALT-PU-2024-7136/states.json @@ -0,0 +1,23 @@ +{ + "TextFileContent54State": [ + { + "ID": "oval:org.altlinux.errata:ste:2001", + "Version": "1", + "Text": {} + } + ], + "RPMInfoStates": [ + { + "ID": "oval:org.altlinux.errata:ste:20247136001", + "Version": "1", + "Comment": "package EVR is earlier than 1:4.5-alt11", + "Arch": {}, + "EVR": { + "Text": "1:4.5-alt11", + "Datatype": "evr_string", + "Operation": "less than" + }, + "Subexpression": {} + } + ] +} \ No newline at end of file diff --git a/oval/p10/ALT-PU-2024-7136/tests.json b/oval/p10/ALT-PU-2024-7136/tests.json new file mode 100644 index 0000000000..c72b1660c2 --- /dev/null +++ b/oval/p10/ALT-PU-2024-7136/tests.json @@ -0,0 +1,126 @@ +{ + "TextFileContent54Tests": [ + { + "ID": "oval:org.altlinux.errata:tst:2001", + "Version": "1", + "Check": "all", + "Comment": "ALT Linux based on branch 'p10' must be installed", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:2001" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:2001" + } + } + ], + "RPMInfoTests": [ + { + "ID": "oval:org.altlinux.errata:tst:20247136001", + "Version": "1", + "Check": "all", + "Comment": "shadow-change is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136001" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136002", + "Version": "1", + "Check": "all", + "Comment": "shadow-check is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136002" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136003", + "Version": "1", + "Check": "all", + "Comment": "shadow-convert is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136003" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136004", + "Version": "1", + "Check": "all", + "Comment": "shadow-edit is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136004" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136005", + "Version": "1", + "Check": "all", + "Comment": "shadow-groups is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136005" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136006", + "Version": "1", + "Check": "all", + "Comment": "shadow-log is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136006" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136007", + "Version": "1", + "Check": "all", + "Comment": "shadow-submap is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136007" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136008", + "Version": "1", + "Check": "all", + "Comment": "shadow-suite is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136008" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + }, + { + "ID": "oval:org.altlinux.errata:tst:20247136009", + "Version": "1", + "Check": "all", + "Comment": "shadow-utils is earlier than 1:4.5-alt11", + "Object": { + "ObjectRef": "oval:org.altlinux.errata:obj:20247136009" + }, + "State": { + "StateRef": "oval:org.altlinux.errata:ste:20247136001" + } + } + ] +} \ No newline at end of file