diff --git a/osquery/tables/system/linux/sysctl_utils.cpp b/osquery/tables/system/linux/sysctl_utils.cpp index 564cbec..854770f 100644 --- a/osquery/tables/system/linux/sysctl_utils.cpp +++ b/osquery/tables/system/linux/sysctl_utils.cpp @@ -6,8 +6,6 @@ * the LICENSE file found in the root directory of this source tree. */ -#include - #include #include @@ -69,20 +67,8 @@ void genControlInfo(int* oid, size_t oid_size, QueryData& results, const std::map& config) { - // Get control size - size_t response_size = CTL_MAX_VALUE; - char response[CTL_MAX_VALUE + 1] = {0}; - if (sysctl(oid, oid_size, response, &response_size, 0, 0) != 0) { - // Cannot request MIB data. - return; - } - // Data is output, but no way to determine type (long, int, string, struct). - Row r; - r["oid"] = stringFromMIB(oid, oid_size); - r["current_value"] = std::string(response); - r["type"] = "string"; - results.push_back(r); + return; } void genAllControls(QueryData& results, diff --git a/osquery/tables/system/posix/sysctl_utils.h b/osquery/tables/system/posix/sysctl_utils.h index 9cb9cc2..743d899 100644 --- a/osquery/tables/system/posix/sysctl_utils.h +++ b/osquery/tables/system/posix/sysctl_utils.h @@ -8,7 +8,7 @@ #pragma once -#include +#include #include