Commit Graph

747 Commits

Author SHA1 Message Date
Teddy Reed
94df7cb691 Build OpenSSL with no-asm to remove AVX2 dependency (#2493)
To support machines without AVX2 features we need to avoid compiling
and linking the dependent instructions found the ASM implementations
of some OpenSSL crypto algorithms.

Additionally, we are removing the SSL3 methods from our OpenSSL build.
The osquery TLS plugins explicitly define a cipher list that excludes
SSL3, but as an extra measure (for plugins not using our transports)
we remove it from ASIO and Thrift too.
2016-09-21 10:37:07 -07:00
Teddy Reed
f87e9df38f [#2491] Add Homebrew contributors license (#2492) 2016-09-21 09:16:06 -07:00
Nick Anderson
2abdd120a7 Small fixes to PSScriptAnalyzer install verbosity (#2489) 2016-09-20 17:45:43 -07:00
Alex
575685d3c7 Add support for pre-uninstall scripts at package creation (#2480) 2016-09-20 16:39:40 -07:00
Ryan Holeman
9d9e32badc Changed the naming convention of the tls server file to match osx (#2485) 2016-09-20 16:35:36 -07:00
yying
a7af70d021 Adding remote config/logging capabilities to Windows build (#2469) 2016-09-20 14:18:58 -07:00
Nick Anderson
c7687df3ee Adding version checking to provisioning script (#2478) 2016-09-20 11:29:29 -07:00
Nick Anderson
99795033b2 Fixing powershell linting warnings (#2470) 2016-09-19 13:46:49 -07:00
Teddy Reed
c9880cad17 Refactor legacy runtime (#2473) 2016-09-16 11:29:43 -07:00
Teddy Reed
366b5f08ca Limit Linux package dependencies (#2463) 2016-09-14 10:31:21 -07:00
Teddy Reed
df1e3b9481 Add make fuzz (#2458) 2016-09-13 20:37:31 -07:00
Teddy Reed
ad3349ff92 Update RPM packages with bottle hashes (#2459) 2016-09-13 10:10:05 -07:00
Teddy Reed
c7ee4f9ca4 Add librpm build and RPM tables (#2456) 2016-09-12 22:43:36 -07:00
Mitchell Grenier
072a93ccac Accelerated checkins (#2454) 2016-09-12 16:53:42 -07:00
yying
a27d6567e4 Core and Additional Tests (#2441) 2016-09-12 09:46:52 -07:00
Teddy Reed
1a5f36c715 deps: CMake 3.6.1 (#2440) 2016-09-07 16:30:15 -07:00
Ryan Holeman
6f919429ff added env flag to create *nix packages with a tls server certs file (#2442) 2016-09-07 13:16:59 -07:00
Nick Anderson
7b8bd9657d Adding clang-format to provisioning (#2437) 2016-09-06 16:42:20 -07:00
Philip J Beyer
4f6c802c7b Corrects Linux package script reference (#2415)
Corrects reference to example config in Linux package script.
2016-09-06 16:41:04 -07:00
Teddy Reed
111dadf8a0 Upgrade LLVM to 3.8.1 on Linux (#2436) 2016-09-02 07:59:10 -07:00
yying
d347c847e1 Support for extensions (#2363) 2016-08-31 16:45:06 -07:00
Teddy Reed
65dd56e113 Introduce table 'attributes' (#2431) 2016-08-31 15:32:20 -07:00
Nick Anderson
bcb5edc464 Refactoring Win provisioning to prevent duplicate installations (#2411) 2016-08-28 23:00:26 -07:00
artemdinaburg
7915b579ee Load VS variables for amd64 native build prior to launching cmake (#2408) 2016-08-26 11:42:18 +01:00
Teddy Reed
69dc5d3210 [skip ci] Update RocksDB bottle hashes 4.9 (#2409) 2016-08-25 17:43:38 +01:00
Omer Katz
15dd15ee38 Bump rocksdb to 4.9 (#2404) 2016-08-24 17:02:51 +01:00
Teddy Reed
84e65d1141 Remove various provision files (#2406) 2016-08-24 13:40:35 +01:00
yying
2f1cad864d Support for building static osquery executable (#2398) 2016-08-22 23:27:12 +01:00
Nick Anderson
fe7b8d98f9 Adding getSystemRoot function (#2386)
Adding a cross platform function for getting the OS root
and returning it as a boost::fs::path
2016-08-18 09:32:34 -07:00
Teddy Reed
e969b92a2e Fix code auditing job and disable Homebrew auto-update (#2392) 2016-08-17 16:00:30 -07:00
Teddy Reed
407286b93b deps: Install UUID headers before AWS SDK (#2380) 2016-08-16 19:12:55 -07:00
Teddy Reed
0161edf15d Update bottles for AWS-SDK-CPP 0.14.4 (#2375) 2016-08-16 08:37:11 -07:00
Teddy Reed
d8a3b26f65 Display diff when audit fails due to clang-format changes (#2374) 2016-08-15 22:12:55 -07:00
Teddy Reed
a2540a2614 Update to AWS-SDK-CPP version 0.14.x (#2371) 2016-08-15 21:30:39 -07:00
Teddy Reed
86363bc60a Add AWS-SDK-CPP r1 hashes (#2370) 2016-08-15 17:56:48 -07:00
Ryan Holeman
a217035d12 Add AWS STS assume role authentication capability 2016-08-15 16:07:51 -07:00
Teddy Reed
b551b037ef Always update the local tap symlink for make deps (#2368) 2016-08-15 16:07:39 -07:00
Teddy Reed
a2017f68f1 Add clang-format rules from 3.6 (#2360) 2016-08-15 01:33:17 -07:00
Teddy Reed
89e18547aa Ignore errors within testing for rmtree (#2355) 2016-08-13 22:06:42 -07:00
Teddy Reed
9ee90f4f2d [Fix #2274] Relax return code checks for osqueryd tests (#2353) 2016-08-12 18:02:28 -07:00
yying
381e86a931 Changes to support new boost-msvc14 package (#2352) 2016-08-12 17:08:08 -07:00
artemdinaburg
6e3f4b8e13 Copy required DLLs into the build directory (#2339) 2016-08-10 16:48:33 -07:00
artemdinaburg
de71df922b Check return code from the provision script and error if it errored (#2340) 2016-08-10 16:36:51 -07:00
Teddy Reed
48e3bc033c Always ignore brew dependencies within make deps (#2337) 2016-08-09 22:03:45 -07:00
Teddy Reed
f3f605e26a Introduce a PLATFORM_MASK and isPlatform (#2334)
Along with the platform defines and platform string defines provided by
CMake to the build, add a PLATFORM_MASK define.

Use this define as a platform-type mask with the PlatformType enum.
2016-08-09 20:27:42 -07:00
texereda
2e67c6b717 [Fix #2262] Create flagfile on OS X within osqueryctl (#2317) 2016-08-09 10:27:03 -07:00
Teddy Reed
e1ad335987 Enforce config-check for start command (#2332) 2016-08-09 09:12:17 -07:00
Nick Anderson
ec57595620 Fixed typo in debian provision script (#2320) 2016-08-04 18:37:49 -07:00
Zohaib Sharani
85ed298fb9 Added build support for ManjaroLinux (#2298) 2016-08-03 12:57:09 -07:00
Teddy Reed
8d3fdf371a Fix dependency building for bottle cache misses (#2316)
When a make deps dependency encounters a cache miss, the from-source build
is triggered. This must mimic the from-source CLI arguments to brew.

This commit also improves the aws-sdk-cpp formula.
2016-08-02 16:55:02 -07:00
Teddy Reed
46ae4a6e7a Use a force remove for non-UTF8 files in glibc (#2315) 2016-08-02 01:45:41 -07:00
Tony
487051614f Rename main function, remove ruby-irb (#2314) 2016-08-01 18:47:01 -07:00
Zohaib Sharani
08e5bfbf29 Rename the function main_arch() to distro_main() (#2313) 2016-08-01 18:45:54 -07:00
Teddy Reed
9a26e75ea3 Bump LLVM to revision 1 and build with clang-rt (#2310) 2016-08-01 00:05:59 -07:00
Teddy Reed
e4dd78ec10 Build documentation for brew-based build (#2305) 2016-07-31 17:10:13 -07:00
Teddy Reed
7c1ecc6871 Brew-based build redesign (#2251) 2016-07-31 11:32:31 -07:00
yying
4f5f3f0795 Test for Windows osquery daemon (#2300) 2016-07-29 12:06:13 -07:00
Nick Anderson
5463a7d15c Adding CLI compile script for windows (#2295) 2016-07-25 21:51:37 -07:00
yying
2fb3797c53 Changes to support building a osquery Windows service. (#2278) 2016-07-22 13:29:37 -07:00
Nick Anderson
673f39e86f fixed provision script path in make-win64-dev-env (#2271) 2016-07-21 11:15:49 -07:00
Teddy Reed
172363d3f5 Fix debug-kernel build and deploy dependencies (#2266) 2016-07-20 17:21:20 -07:00
amironenko
575314bf61 Ubuntu + Debian build fixes (#2247) (#2248) 2016-07-20 17:02:40 -07:00
Nick Anderson
00935e28cc Moved windows provisioning script (#2257) 2016-07-19 16:47:51 -07:00
Tony
c1d004ed1f Better fault-tolerant defaults for systemd service (#2255) 2016-07-17 18:56:00 -07:00
DaanDeMeyer
0544b50530 Cleaned up arch provisioning (#2239) 2016-07-12 11:51:35 -07:00
Tony
aa714d4c77 Add ability to provision Arch Linux (#2215) 2016-07-06 15:02:58 -07:00
Omer Katz
2eb4a75884 Bump AWS SDK to 0.12.17 (#2214) 2016-07-05 20:26:24 -07:00
Teddy Reed
24f757850e Add link_whole to generated TARGETS file (#2219) 2016-07-05 17:58:06 -07:00
Teddy Reed
3b2c489374 Use libuuid from e2fsprogs for codegen TARGETS (#2213) 2016-07-01 11:36:42 -07:00
Teddy Reed
753c023640 Fix milli/micro conversion when waiting for active plugins (#2205) 2016-06-30 13:31:32 -07:00
Teddy Reed
3422a44d83 Run profile on all POSIX tables (#2202) 2016-06-30 11:58:55 -07:00
artemdinaburg
b7aad5a2c3 Install new requires packages and link to them in CMake (#2183) 2016-06-24 08:47:48 -07:00
artemdinaburg
d4a3fe2452 Windows Daemon/Shell: Initial support for Windows tables (#2182)
Preparation for Windows Tables. We need a Windows process table so that the daemon will run
2016-06-23 16:04:11 -07:00
Teddy Reed
9a4b6ba1a8 [Fix #2161] Remove space and quotes from launch daemon (#2174) 2016-06-19 23:25:09 -07:00
Gary
498f64437a Copy service unit configuration to Ubuntu Xenial default location (#2163) 2016-06-15 13:21:33 -07:00
Gary
5eee608f62 Fixed bash griefing over postifx-compatible conditional compounds (#2159) 2016-06-10 16:37:56 -07:00
Nick Anderson
cf30388705 Moved test_utils to it's own directory out of core. Updated references (#2154) 2016-06-09 10:49:26 -07:00
Teddy Reed
866ff13fc3 Fix OS X kernel extension autoload (#2151) 2016-06-08 11:14:36 -07:00
Teddy Reed
63db493e4f Update AWS-SDK build to 0.12.5 (#2148) 2016-06-07 19:04:22 -07:00
Ryan Holeman
5dd2a54f39 Ability to add default configs and postinstall scripts to deb/rpm packages (#2142) 2016-06-07 15:09:08 -07:00
Nick Anderson
5d072cd080 Added except for lsb_release not existing on system (#2143)
Added an exception case for OSError when the lsb_release command isn't found on hosts.
2016-06-07 12:52:51 -07:00
Zachary Wasserman
0ec094c27c Update version for AWS SDK 0.12.4 (#2139) 2016-06-06 16:43:01 -07:00
Teddy Reed
763f4e9437 Use SQLite 3.14.0 to support LIKE and EQUALS (#2137)
This commit bumps the third-party SQLite to the 3.14.0 pre-release (18:59).
With 3.14.0 the LIKE and EQUALS constraint operators may be mixed within a
query. Previously these would fail to produce a valid set.

As part of the support, each virtual table should choose to bypass rowid-based
deduplication using the new "WITHOUT ROWID" create table epilog. This will
be appended to the schema if the table defines a PRIMARY KEY using index=True.
2016-06-06 09:36:53 -07:00
Teddy Reed
597c7d5c02 Add systemd service to Xenial (#2134) 2016-06-03 09:09:09 -07:00
Teddy Reed
af1a8d8ad6 Check for none in linked_keg (#2133) 2016-06-02 16:10:26 -07:00
Teddy Reed
4704ccd6c9 Use local AWS-SDK formula for OS X (#2132)
Thus begins our need to include local (modified) brew formulas.
This commit adds a new provision library method: local_brew. Use this function
within provision scripts to install packages that are not appropriate for
homebrew-core.
2016-06-02 14:58:43 -07:00
Justin Gerace
d27930b4ea Fix Scientific Linux build process (#2130) 2016-06-01 16:59:55 -07:00
Nick Anderson
3422100578 Updated the get_platform.py script to be Python 3 compatible (#2122)
Added in future imports to make the script forwards compatible and updated print functions.
2016-05-31 09:10:53 -07:00
Teddy Reed
a9ed73c68d Add removeService to Dispatcher API (#2116)
With a removeService method, combined with the abstracted thread start in
the Dispatcher API, services auto-remove when finished.

This will un-break the kernel communication tests. These tests only stop
when all their producer threads/services have ended.

This also promotes the OS X kernel build to 10.11.
2016-05-27 11:17:06 -07:00
Sharvil Shah
8b0e6e138f Fix benchmark target and bump version of google-benchmark to 1.0.0 (#2065) 2016-05-19 11:56:54 -07:00
Teddy Reed
c4acfe89e5 Introduce table aliases (#2104) 2016-05-19 09:40:43 -07:00
Teddy Reed
df7003e708 Use ruby/gem ABI version 1.9.1 on 12.04 (#2106) 2016-05-18 22:21:06 -07:00
Teddy Reed
869993b543 Fix Ubuntu 15.04 build (#2105) 2016-05-18 20:48:26 -07:00
Teddy Reed
b28c4d8d0f Introduce table options (#2101)
Table options includes a change to the Registry::call API for TablePlugins.
When requesting route information or the 'columns' action, a new 'op' key is included.
2016-05-18 12:23:52 -07:00
yying
26ad131c38 Building osquery unit tests on Windows 10 (#2100)
Integrated process abstraction code into more locations
Defined new macros for abstracting across various platforms
Added GLOG_NO_ABBREVIATED_SEVERITIES for glog to support Windows
Fixed some minor CMake issues involving thrift
Updated gflags package; reflecting change in provision script
Preparing CMake config files for WIN32 support
2016-05-17 12:39:11 -07:00
Teddy Reed
314e3467bc Check for systemd service in osqueryctl (#2090) 2016-05-13 19:48:22 -07:00
Teddy Reed
e61116f5db Add Ubuntu Xenial 16.04 build support (#2089)
The current Ubuntu-provided Xenial does not mount a shared folder.
2016-05-12 08:47:05 -07:00
Christian McHugh
1f4d4f6965 - Install CMake on all Debian versions- Only install Ruby 1.8's development package on Wheeze
- Install CMake on all Debian versions
- Only install Ruby 1.8's development package on Wheezy
2016-05-12 08:45:33 -07:00
Teddy Reed
d49c401324 Add decorators to example config (#2082) 2016-05-10 10:07:25 -07:00
Teddy Reed
947799d28e Introduce within-query caching (#2077)
This adds a new optimization feature that allows expensive tables to cache
their results between JOINs. Consider JOINing a list of open sockets, for each
process, then requesting to hash each process path. This query may hash
the same path multiple times.

Within-query caching allows the hash table to respond with the previous
result of the hash request as long as the requested computation was the result
of a single query. Subsequent queries will perform subsequent hashing.
2016-05-09 10:32:33 -07:00