From 919c4cb0ddd58496b2bca7339d293568b46bcf1c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Thu, 5 Mar 2020 01:00:13 +0000 Subject: [PATCH] Schema: Add in more specifics for linux/mac specification --- volatility/schemas/schema-6.2.0.json | 62 +++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 6 deletions(-) diff --git a/volatility/schemas/schema-6.2.0.json b/volatility/schemas/schema-6.2.0.json index 47e6d2ab1..4cafff8e6 100644 --- a/volatility/schemas/schema-6.2.0.json +++ b/volatility/schemas/schema-6.2.0.json @@ -80,23 +80,73 @@ }, "metadata_linux": { "type": "object", - "$comment": "Reserved for future use" + "properties": { + "elf": { + "$ref": "#/definitions/metadata_linux_elf" + }, + "dwarf": { + "$ref": "#/definitions/metadata_dwarf" + } + }, + "additionalProperties": false }, "metadata_mac": { "type": "object", - "$comment": "Reserved for future use" + "properties": { + "elf": { + "$ref": "#/definitions/metadata_mac_macho" + }, + "dwarf": { + "$ref": "#/definitions/metadata_dwarf" + } + }, + "additionalProperties": false }, "metadata_format": { "type": "string", "pattern": "^6.[0-9]+.[0-9]+$" }, - "metadata_source": { + "metadata_linux_elf": { "type": "object", "properties": { - "type": { - "type": "string" + "symbols": { + "type": "boolean" + }, + "buildid": { + "type": "string", + "pattern": "^[a-fA-F0-9]+$" } - } + }, + "additionalProperties": false + }, + "metadata_mac_macho": { + "type": "object", + "properties": { + "symbols": { + "type": "boolean" + }, + "uuid": { + "type": "string", + "pattern": "^[a-fA-F0-9]+-[a-fA-F0-9]+-[a-fA-F0-9]+-[a-fA-F0-9]+-[a-fA-F0-9]+$" + } + }, + "additionalProperties": false + }, + "metadata_dwarf": { + "type": "object", + "properties": { + "symbols": { + "type": "boolean" + }, + "types": { + "type": "boolean" + }, + "uuid": { + "type": "string", + "pattern": "^[a-fA-F0-9]+-[a-fA-F0-9]+-[a-fA-F0-9]+-[a-fA-F0-9]+-[a-fA-F0-9]+$" + } + }, + "additionalProperties": false }, "element_metadata": { "type": "object",