Skip to content

Commit

Permalink
Epoch in rpm_packages table (osquery#5248)
Browse files Browse the repository at this point in the history
Summary:
code for issue: osquery#5202
Pull Request resolved: osquery#5248

Differential Revision: D13677333

Pulled By: fmanco

fbshipit-source-id: e245c3733bb73a1d4d6ab61e007c1cf274c29e59
  • Loading branch information
micheal-o authored and facebook-github-bot committed Jan 16, 2019
1 parent f5645b9 commit 6fe7b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions osquery/tables/system/linux/rpm_packages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ QueryData genRpmPackages(QueryContext& context) {
r["size"] = getRpmAttribute(header, RPMTAG_SIZE, td);
r["sha1"] = getRpmAttribute(header, RPMTAG_SHA1HEADER, td);
r["arch"] = getRpmAttribute(header, RPMTAG_ARCH, td);
r["epoch"] = INTEGER(getRpmAttribute(header, RPMTAG_EPOCH, td));

rpmtdFree(td);
results.push_back(r);
Expand Down
1 change: 1 addition & 0 deletions specs/linux/rpm_packages.table
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ schema([
Column("size", BIGINT, "Package size in bytes"),
Column("sha1", TEXT, "SHA1 hash of the package contents"),
Column("arch", TEXT, "Architecture(s) supported"),
Column("epoch", INTEGER, "Package epoch value"),
])
attributes(cacheable=True)
implementation("@genRpmPackages")

0 comments on commit 6fe7b4c

Please sign in to comment.