mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 18:08:53 +00:00
82a99aee16
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5481 osquery registries is big part of SDK interface and it is important to make sure SDK include them all. Need of tests for non optional plugins can be not so obvious. All non-optional plugins should not be included to SDK library. Because it causes to double plugin registration when extensions process connects to `osqueryd`. That leads to the crash of extensions process. Unfortunatelly there is no explisit list of plugins included to SDK and there is no way to check them at compile time. Thankfully it can be done at runtime and we can make a test for it. Reviewed By: fmanco Differential Revision: D14261046 fbshipit-source-id: 0fb6618368ae7f735c648cc69fc3ea5f331123ad
51 lines
2.0 KiB
Python
51 lines
2.0 KiB
Python
# Copyright (c) 2014-present, Facebook, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed as defined on the LICENSE file found in the
|
|
# root directory of this source tree.
|
|
|
|
load("//tools/build_defs/oss/osquery:cxx.bzl", "osquery_cxx_library")
|
|
load("//tools/build_defs/oss/osquery:native.bzl", "osquery_target")
|
|
|
|
osquery_cxx_library(
|
|
name = "plugin_sdk",
|
|
srcs = [
|
|
"empty_register_foreign_tables.cpp",
|
|
],
|
|
header_namespace = "osquery/sdk",
|
|
exported_headers = [
|
|
"plugin_sdk.h",
|
|
],
|
|
link_whole = True,
|
|
tests = [
|
|
osquery_target("sdk/tests:plugin_sdk_tests"),
|
|
],
|
|
visibility = ["PUBLIC"],
|
|
deps = [
|
|
osquery_target("osquery/config:config"),
|
|
osquery_target("osquery/database/plugins:ephemeral"),
|
|
osquery_target("osquery/dispatcher:dispatcher"),
|
|
osquery_target("osquery/events:events_registry"),
|
|
osquery_target("osquery/extensions:extensions"),
|
|
osquery_target("osquery/killswitch:killswitch"),
|
|
osquery_target("osquery/numeric_monitoring:numeric_monitoring"),
|
|
osquery_target("osquery/remote/enroll:tls_enroll"),
|
|
osquery_target("osquery/sql:sql"),
|
|
osquery_target("osquery/utils/conversions:conversions"),
|
|
osquery_target("osquery/utils/debug:debug"),
|
|
osquery_target("osquery/utils/expected:expected"),
|
|
osquery_target("osquery/utils/info:info"),
|
|
osquery_target("osquery/utils/macros:macros"),
|
|
osquery_target("osquery/utils/status:status"),
|
|
osquery_target("osquery/utils/system:env"),
|
|
osquery_target("osquery/utils/system:errno"),
|
|
osquery_target("osquery/utils/system:filepath"),
|
|
osquery_target("osquery/utils/system:system_utils"),
|
|
osquery_target("osquery/utils/system:time"),
|
|
osquery_target("osquery/utils/system:uptime"),
|
|
osquery_target("osquery/utils:attribute"),
|
|
osquery_target("osquery/utils:utils"),
|
|
osquery_target("osquery:headers"),
|
|
],
|
|
)
|