2014-08-30 10:17:52 +00:00
|
|
|
if(APPLE)
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_OBJCXX_LIBRARY(FALSE osquery_tables_objc
|
2014-10-10 01:08:18 +00:00
|
|
|
system/darwin/users.mm
|
2014-10-10 22:09:14 +00:00
|
|
|
system/darwin/groups.mm
|
2015-02-25 22:18:43 +00:00
|
|
|
system/darwin/certificates.mm
|
2014-08-30 10:17:52 +00:00
|
|
|
)
|
2014-08-30 10:24:35 +00:00
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_tables_darwin
|
2015-03-09 05:21:58 +00:00
|
|
|
applications/darwin/browser_chrome.cpp
|
|
|
|
applications/darwin/browser_firefox.cpp
|
|
|
|
applications/darwin/browser_safari.cpp
|
2014-09-30 20:17:54 +00:00
|
|
|
events/darwin/passwd_changes.cpp
|
2015-02-18 02:04:15 +00:00
|
|
|
events/darwin/file_changes.cpp
|
2014-12-12 02:06:08 +00:00
|
|
|
events/darwin/hardware_events.cpp
|
2014-09-09 05:44:46 +00:00
|
|
|
networking/darwin/routes.cpp
|
2015-01-16 05:37:02 +00:00
|
|
|
system/darwin/acpi_tables.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/apps.cpp
|
2015-01-23 17:40:35 +00:00
|
|
|
system/darwin/block_devices.cpp
|
2015-03-08 09:59:59 +00:00
|
|
|
system/darwin/keychain_items.cpp
|
|
|
|
system/darwin/keychain_utils.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
|
2015-01-15 20:46:49 +00:00
|
|
|
system/darwin/iokit_registry.cpp
|
2015-01-23 17:40:35 +00:00
|
|
|
system/darwin/iokit_utils.cpp
|
2015-01-23 04:47:29 +00:00
|
|
|
system/darwin/kernel_info.cpp
|
2015-01-11 07:38:03 +00:00
|
|
|
system/darwin/kernel_extensions.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/launchd.cpp
|
2014-11-17 18:43:59 +00:00
|
|
|
system/darwin/mounts.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/darwin/nvram.cpp
|
2015-03-15 23:07:49 +00:00
|
|
|
system/darwin/os_version.cpp
|
2015-02-10 23:58:08 +00:00
|
|
|
system/darwin/preferences.cpp
|
2014-09-09 05:19:59 +00:00
|
|
|
system/darwin/processes.cpp
|
2015-01-13 18:42:44 +00:00
|
|
|
system/darwin/process_open_descriptors.cpp
|
2014-10-31 13:10:51 +00:00
|
|
|
system/darwin/quarantine.cpp
|
2014-12-10 22:51:43 +00:00
|
|
|
system/darwin/pci_devices.cpp
|
2014-11-23 02:04:47 +00:00
|
|
|
system/darwin/usb_devices.cpp
|
2015-01-19 00:20:50 +00:00
|
|
|
system/darwin/smbios_tables.cpp
|
2014-10-30 01:10:26 +00:00
|
|
|
system/darwin/startup_items.cpp
|
2015-02-26 22:10:39 +00:00
|
|
|
system/darwin/sysctl_utils.cpp
|
2014-12-16 04:16:52 +00:00
|
|
|
system/darwin/xprotect.cpp
|
2015-01-15 18:13:15 +00:00
|
|
|
system/darwin/nfs_shares.cpp
|
2015-01-21 02:02:45 +00:00
|
|
|
system/darwin/xattr.cpp
|
2014-08-30 10:24:35 +00:00
|
|
|
)
|
2014-09-06 01:12:37 +00:00
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LINK(FALSE "-framework CoreFoundation")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "-framework Security")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "-framework OpenDirectory")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "-framework DiskArbitration")
|
2014-11-13 20:00:41 +00:00
|
|
|
elseif(FREEBSD)
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_tables_freebsd
|
2014-11-18 20:12:03 +00:00
|
|
|
events/freebsd/passwd_changes.cpp
|
|
|
|
networking/freebsd/routes.cpp
|
|
|
|
system/freebsd/processes.cpp
|
|
|
|
system/freebsd/users.cpp
|
|
|
|
system/freebsd/groups.cpp
|
2014-11-13 20:00:41 +00:00
|
|
|
)
|
2014-09-05 14:54:41 +00:00
|
|
|
else()
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_tables_linux
|
2014-12-08 10:22:59 +00:00
|
|
|
events/linux/hardware_events.cpp
|
2015-01-11 10:17:10 +00:00
|
|
|
events/linux/passwd_changes.cpp
|
2015-02-18 02:04:15 +00:00
|
|
|
events/linux/file_changes.cpp
|
2014-11-16 21:59:19 +00:00
|
|
|
networking/linux/arp_cache.cpp
|
2015-01-11 10:17:10 +00:00
|
|
|
networking/linux/process_open_sockets.cpp
|
|
|
|
networking/linux/routes.cpp
|
2015-01-18 07:02:14 +00:00
|
|
|
system/linux/acpi_tables.cpp
|
2015-01-11 10:17:10 +00:00
|
|
|
system/linux/block_devices.cpp
|
|
|
|
system/linux/groups.cpp
|
2015-01-22 06:37:43 +00:00
|
|
|
system/linux/kernel_info.cpp
|
2014-12-06 21:40:55 +00:00
|
|
|
system/linux/kernel_integrity.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
system/linux/kernel_modules.cpp
|
2015-02-09 07:47:40 +00:00
|
|
|
system/linux/memory_map.cpp
|
2014-11-01 00:16:36 +00:00
|
|
|
system/linux/mounts.cpp
|
2015-03-15 23:07:49 +00:00
|
|
|
system/linux/os_version.cpp
|
2014-10-31 20:03:27 +00:00
|
|
|
system/linux/pci_devices.cpp
|
2015-01-11 10:17:10 +00:00
|
|
|
system/linux/processes.cpp
|
|
|
|
system/linux/process_open_files.cpp
|
2015-02-09 04:32:30 +00:00
|
|
|
system/linux/shared_memory.cpp
|
2015-01-19 03:43:40 +00:00
|
|
|
system/linux/smbios_tables.cpp
|
2015-02-26 22:10:39 +00:00
|
|
|
system/linux/sysctl_utils.cpp
|
2014-12-10 22:51:43 +00:00
|
|
|
system/linux/usb_devices.cpp
|
2015-01-11 10:17:10 +00:00
|
|
|
system/linux/users.cpp
|
2014-09-05 14:54:41 +00:00
|
|
|
)
|
2014-10-29 05:59:25 +00:00
|
|
|
|
2014-12-31 17:33:19 +00:00
|
|
|
if(CENTOS)
|
|
|
|
# CentOS specific tables
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_tables_redhat
|
2015-03-15 23:07:49 +00:00
|
|
|
system/centos/rpm_packages.cpp
|
2014-12-31 17:33:19 +00:00
|
|
|
)
|
2014-12-30 22:24:49 +00:00
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LINK(FALSE "rpm")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "rpmio")
|
2014-12-31 17:33:19 +00:00
|
|
|
elseif(UBUNTU)
|
2014-12-31 18:06:54 +00:00
|
|
|
# Ubuntu specific tables
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_tables_ubuntu
|
2015-03-15 23:07:49 +00:00
|
|
|
system/ubuntu/deb_packages.cpp
|
|
|
|
system/ubuntu/apt_sources.cpp
|
2014-12-31 18:06:54 +00:00
|
|
|
)
|
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LINK(FALSE "apt-pkg")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "dpkg")
|
2014-12-23 19:39:03 +00:00
|
|
|
endif()
|
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LINK(FALSE "procps" "proc")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "blkid")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "udev")
|
|
|
|
ADD_OSQUERY_LINK(FALSE "uuid")
|
2014-08-30 10:17:52 +00:00
|
|
|
endif()
|
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_tables
|
2014-08-30 10:46:08 +00:00
|
|
|
networking/etc_hosts.cpp
|
2014-11-29 16:06:34 +00:00
|
|
|
networking/etc_services.cpp
|
2015-01-13 18:42:44 +00:00
|
|
|
networking/interfaces.cpp
|
|
|
|
networking/listening_ports.cpp
|
|
|
|
networking/utils.cpp
|
2014-10-28 22:43:37 +00:00
|
|
|
system/cpuid.cpp
|
2014-12-23 22:39:59 +00:00
|
|
|
system/crontab.cpp
|
2014-10-14 01:19:08 +00:00
|
|
|
system/last.cpp
|
2014-11-29 01:38:04 +00:00
|
|
|
system/shell_history.cpp
|
2015-01-19 03:43:40 +00:00
|
|
|
system/smbios_utils.cpp
|
2014-10-29 05:08:10 +00:00
|
|
|
system/suid_bin.cpp
|
2015-02-26 22:10:39 +00:00
|
|
|
system/system_controls.cpp
|
2014-11-23 04:49:37 +00:00
|
|
|
system/logged_in_users.cpp
|
2014-07-31 00:35:19 +00:00
|
|
|
)
|
2014-08-17 08:44:22 +00:00
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_LIBRARY(TRUE osquery_utility_tables
|
2014-12-24 04:07:12 +00:00
|
|
|
utility/time.cpp
|
|
|
|
utility/hash.cpp
|
|
|
|
utility/file.cpp
|
|
|
|
utility/osquery.cpp
|
|
|
|
)
|
|
|
|
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_TEST(FALSE etc_hosts_tests networking/etc_hosts_tests.cpp)
|
2014-08-30 21:26:24 +00:00
|
|
|
if(APPLE)
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_TEST(FALSE xattr_tests system/darwin/xattr_tests.cpp)
|
|
|
|
ADD_OSQUERY_TEST(FALSE apps_tests system/darwin/apps_tests.cpp)
|
2015-02-25 22:18:43 +00:00
|
|
|
ADD_OSQUERY_TEST(FALSE certificates_tests system/darwin/certificates_tests.cpp)
|
2015-02-03 05:21:36 +00:00
|
|
|
ADD_OSQUERY_TEST(FALSE firewall_tests system/darwin/firewall_tests.cpp)
|
|
|
|
ADD_OSQUERY_TEST(FALSE launchd_tests system/darwin/launchd_tests.cpp)
|
2014-08-30 21:26:24 +00:00
|
|
|
endif()
|