mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
32 lines
773 B
C++
32 lines
773 B
C++
/*
|
|
* Copyright (c) 2015, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <osquery/config.h>
|
|
#include <osquery/tables.h>
|
|
|
|
namespace osquery {
|
|
|
|
/**
|
|
* @brief A simple ConfigParserPlugin for a "packs" dictionary key.
|
|
*
|
|
*/
|
|
class QueryPackConfigParserPlugin : public ConfigParserPlugin {
|
|
public:
|
|
/// Request "packs" top level key.
|
|
std::vector<std::string> keys() { return {"packs"}; }
|
|
|
|
private:
|
|
/// Store the signatures and file_paths and compile the rules.
|
|
Status update(const ConfigTreeMap& config);
|
|
};
|
|
}
|