While doing a Registry Call from example_extension...
# core
m
While doing a Registry Call from example_extension like below. I have setup config_plugin as local filesystem. Btw i am doing all this on the latest master(4.0.2). I get an error "No registry item name specified" osquery::PluginResponse response; auto status = osquery:Registry:call("config", {{"action", "genConfig"}}, response); I can see that the function call lands into core through the thrift interface all the way in core and lands inside
Copy code
std::string RegistryInterface::getActive() const {
  ReadLock lock(mutex_);

  return active_;
}
I expected to get called into "Status FilesystemConfigPlugin::genConfig( std:map<std:string, std::string>& config)" since i used filesystem config_plugin But internally while fetching the active config plugin in Registry code, it finds an Empty "" via extension path. At the same time when osquery core internal calls it during config load or config refresh, active config plugin (i.e. filesystem) is fetched fine. Is something wrong somewhere or i am missing something? I haven't dig too deep than this as of now. But when calling from extension i see this diff behavior.