From f7f5c4e719ce0fa0b9a6a01e764f8bc60c8866f9 Mon Sep 17 00:00:00 2001 From: Yevhenii Solomchenko Date: Thu, 5 Sep 2024 18:24:12 +0200 Subject: [PATCH] Create lookup for OS build ID (#1374) Co-authored-by: Joao Grassi <5938087+joaopgrassi@users.noreply.github.com> Co-authored-by: Liudmila Molkova --- model/resource/os.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 model/resource/os.yaml diff --git a/model/resource/os.yaml b/model/resource/os.yaml new file mode 100644 index 0000000000..374d2e1594 --- /dev/null +++ b/model/resource/os.yaml @@ -0,0 +1,28 @@ +groups: + - id: os + type: resource + brief: > + The operating system (OS) on which the process represented by this resource is running. + note: > + In case of virtualized environments, this is the operating system as it is observed by + the process, i.e., the virtualized guest rather than the underlying host. + attributes: + - ref: os.type + requirement_level: required + - ref: os.description + - ref: os.name + - ref: os.version + - ref: os.build_id + note: > + `build_id` values SHOULD be obtained from the following sources: + + + | OS | Primary | Fallback | + + | ------- | ------- | ------- | + + | Windows | `CurrentBuildNumber` from registry `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion` | - | + + | MacOS | `ProductBuildVersion` from `/System/Library/CoreServices/SystemVersion.plist` | `ProductBuildVersion` from `/System/Library/CoreServices/ServerVersion.plist` | + + | Linux | `BUILD_ID` from `/etc/os-release` | `BUILD_ID` from `/usr/lib/os-release`;
contents of `/proc/sys/kernel/osrelease`|