osquery-1/specs/darwin/package_bom.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

16 lines
683 B
Plaintext

table_name("package_bom")
description("OS X package bill of materials (BOM) file list.")
schema([
Column("filepath", TEXT, "Package file or directory"),
Column("uid", INTEGER, "Expected user of file or directory"),
Column("gid", INTEGER, "Expected group of file or directory"),
Column("mode", INTEGER, "Expected permissions"),
Column("size", INTEGER, "Expected file size"),
Column("modified_time", INTEGER, "Timestamp the file was installed"),
Column("path", TEXT, "Path of package bom", required=True),
])
implementation("packages@genPackageBOM")
examples([
"select * from package_bom where path = '/var/db/receipts/com.apple.pkg.MobileDevice.bom'"
])