osquery-1/osquery/tables
Ted Reed a6171de32e Handle bad fds in md_tables (#5553)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5553

Infer flagged this use of `unique_ptr` as potentially leaking the FD. I do not think this is the case but there is a missing check for a failed `open`. I am unsure of what the `ioctl` would do in this case.

I removed the custom decl to make the logic in this table easier (opinion).

Reviewed By: guliashvili

Differential Revision: D14700412

fbshipit-source-id: cfcfe9d2629aa27f18d39058830cb5c63881f163
2019-04-03 15:16:49 -07:00
..
applications chrome_extensions: Add the profile name to the table (#5213) 2019-03-27 03:02:16 -07:00
cloud Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
events Use Status::success throughout osquery (#5542) 2019-03-29 04:28:39 -07:00
forensic Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
lldpd Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
networking Use Status::success throughout osquery (#5542) 2019-03-29 04:28:39 -07:00
sleuthkit Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
smart Move plugins to a separate directory [5/?] (#5483) 2019-03-02 04:23:06 -08:00
system Handle bad fds in md_tables (#5553) 2019-04-03 15:16:49 -07:00
utility Add Windows product version information to file table (#5431) 2019-02-21 13:45:46 -08:00
yara Use Status::success throughout osquery (#5542) 2019-03-29 04:28:39 -07:00
BUCK Fix LICENSE information on file headers (#5375) 2019-01-21 11:51:54 -08:00