osquery-1/specs/os_version.table
2018-09-14 16:07:37 -07:00

21 lines
873 B
Plaintext

table_name("os_version")
description("A single row containing the operating system name and version.")
schema([
Column("name", TEXT, "Distribution or product name"),
Column("version", TEXT, "Pretty, suitable for presentation, OS version"),
Column("major", INTEGER, "Major release version"),
Column("minor", INTEGER, "Minor release version"),
Column("patch", INTEGER, "Optional patch release"),
Column("build", TEXT, "Optional build-specific or variant string"),
Column("platform", TEXT, "OS Platform or ID"),
Column("platform_like", TEXT, "Closely related platforms"),
Column("codename", TEXT, "OS version codename"),
])
extended_schema(WINDOWS, [
Column("install_date", TEXT, "The install date of the OS."),
])
implementation("system/os_version@genOSVersion")
fuzz_paths([
"/System/Library/CoreServices/SystemVersion.plist",
])