osquery-1/specs/darwin/preferences.table
Teddy Reed a105924804 Move specs to a top-level path, add query examples
1. Example queries will run with an (optional) integration test.
2. Fix bad accesses with OS X package BOMs
3. Move spec files from ./osquery/tables/specs to ./specs
4. Remove server parsers (netlib) from client builds.
2015-06-03 10:39:05 -07:00

18 lines
766 B
Plaintext

table_name("preferences")
description("OS X defaults and managed preferences.")
schema([
Column("domain", TEXT, "Application ID usually in com.name.product format",
index=True),
Column("key", TEXT, "Preference top-level key"),
Column("subkey", TEXT, "Intemediate key path, includes lists/dicts"),
Column("value", TEXT, "String value of most CF types"),
Column("forced", INTEGER, "1 if the value is forced/managed, else 0"),
Column("path", TEXT, "(optional) read preferences from a plist",
additional=True),
])
implementation("system/darwin/preferences@genOSXPreferences")
examples([
"select * from preferences where domain = 'loginwindow'",
"select * from preferences where path = '/Library/Preferences/loginwindow.plist'"
])