2014-08-30 10:17:52 +00:00
|
|
|
if(APPLE)
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_OBJCXX_LIBRARY(osquery_tables_objc
|
2014-09-05 14:54:41 +00:00
|
|
|
../core/darwin/NSProcessInfo+PECocoaBackports.mm
|
2014-09-09 17:53:59 +00:00
|
|
|
../core/darwin/NSProcessInfo+PECocoaBackports.h
|
|
|
|
../core/darwin/PECocoaBackportsGlobal.h
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/osx_version.mm
|
2014-10-10 01:08:18 +00:00
|
|
|
system/darwin/users.mm
|
2014-10-10 22:09:14 +00:00
|
|
|
system/darwin/groups.mm
|
2014-08-30 10:17:52 +00:00
|
|
|
)
|
2014-08-30 10:24:35 +00:00
|
|
|
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(osquery_tables_darwin
|
2014-09-30 20:17:54 +00:00
|
|
|
events/darwin/passwd_changes.cpp
|
2014-09-09 05:44:46 +00:00
|
|
|
networking/darwin/interfaces.cpp
|
|
|
|
networking/darwin/listening_ports.cpp
|
|
|
|
networking/darwin/routes.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/apps.cpp
|
|
|
|
system/darwin/ca_certs.cpp
|
2014-09-09 17:53:59 +00:00
|
|
|
system/darwin/firewall.h
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/firewall.cpp
|
2014-10-29 04:16:32 +00:00
|
|
|
system/darwin/homebrew_packages.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/kextstat.cpp
|
|
|
|
system/darwin/launchd.cpp
|
|
|
|
system/darwin/nvram.cpp
|
2014-09-09 05:19:59 +00:00
|
|
|
system/darwin/processes.cpp
|
2014-10-31 13:10:51 +00:00
|
|
|
system/darwin/quarantine.cpp
|
2014-10-30 01:10:26 +00:00
|
|
|
system/darwin/startup_items.cpp
|
2014-08-30 10:24:35 +00:00
|
|
|
)
|
2014-09-06 01:12:37 +00:00
|
|
|
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LINK("-framework Foundation")
|
2014-09-06 01:12:37 +00:00
|
|
|
ADD_OSQUERY_LINK("-framework IOKit")
|
|
|
|
ADD_OSQUERY_LINK("-framework CoreFoundation")
|
|
|
|
ADD_OSQUERY_LINK("-framework Security")
|
2014-10-10 22:09:14 +00:00
|
|
|
ADD_OSQUERY_LINK("-framework OpenDirectory")
|
2014-09-05 14:54:41 +00:00
|
|
|
else()
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(osquery_tables_linux
|
2014-09-25 17:17:32 +00:00
|
|
|
events/linux/passwd_changes.cpp
|
2014-09-09 05:44:46 +00:00
|
|
|
networking/linux/routes.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/linux/kernel_modules.cpp
|
2014-09-09 05:19:59 +00:00
|
|
|
system/linux/processes.cpp
|
2014-10-10 01:08:18 +00:00
|
|
|
system/linux/users.cpp
|
2014-10-10 22:09:14 +00:00
|
|
|
system/linux/groups.cpp
|
2014-11-01 00:16:36 +00:00
|
|
|
system/linux/mounts.cpp
|
2014-10-31 20:03:27 +00:00
|
|
|
system/linux/pci_devices.cpp
|
2014-10-31 23:46:14 +00:00
|
|
|
system/linux/block_devices.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
)
|
2014-10-29 05:59:25 +00:00
|
|
|
|
2014-10-29 10:38:21 +00:00
|
|
|
# CentOS specific tables
|
|
|
|
ADD_OSQUERY_LIBRARY(osquery_tables_redhat
|
|
|
|
system/linux/rpm_packages.cpp
|
|
|
|
)
|
|
|
|
|
2014-10-29 05:59:25 +00:00
|
|
|
ADD_OSQUERY_LINK("rpm")
|
2014-10-29 10:38:21 +00:00
|
|
|
ADD_OSQUERY_LINK("rpmio")
|
2014-08-30 10:17:52 +00:00
|
|
|
endif()
|
|
|
|
|
2014-08-30 10:43:02 +00:00
|
|
|
FILE(GLOB table_sources
|
|
|
|
"generated/*.cpp"
|
|
|
|
"manual/*.cpp"
|
|
|
|
)
|
|
|
|
|
2014-09-23 03:40:28 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(osquery_tables
|
2014-09-09 05:44:46 +00:00
|
|
|
networking/utils.cpp
|
2014-08-30 10:46:08 +00:00
|
|
|
networking/etc_hosts.cpp
|
2014-08-30 07:15:31 +00:00
|
|
|
utility/time.cpp
|
2014-10-28 22:10:14 +00:00
|
|
|
utility/crontab.cpp
|
2014-10-28 22:43:37 +00:00
|
|
|
system/cpuid.cpp
|
2014-10-14 01:19:08 +00:00
|
|
|
system/last.cpp
|
2014-10-17 23:57:03 +00:00
|
|
|
system/bash_history.cpp
|
2014-10-29 05:08:10 +00:00
|
|
|
system/suid_bin.cpp
|
2014-09-09 17:53:59 +00:00
|
|
|
base.h
|
2014-07-31 00:35:19 +00:00
|
|
|
)
|
2014-08-17 08:44:22 +00:00
|
|
|
|
2014-09-23 02:54:59 +00:00
|
|
|
ADD_OSQUERY_TEST(etc_hosts_tests networking/etc_hosts_tests.cpp)
|
2014-08-30 21:26:24 +00:00
|
|
|
if(APPLE)
|
2014-09-23 02:54:59 +00:00
|
|
|
ADD_OSQUERY_TEST(apps_tests system/darwin/apps_tests.cpp)
|
|
|
|
ADD_OSQUERY_TEST(ca_certs_tests system/darwin/ca_certs_tests.cpp)
|
|
|
|
ADD_OSQUERY_TEST(firewall_tests system/darwin/firewall_tests.cpp)
|
|
|
|
ADD_OSQUERY_TEST(launchd_tests system/darwin/launchd_tests.cpp)
|
2014-08-30 21:26:24 +00:00
|
|
|
endif()
|