Commit Graph

5590 Commits

Author SHA1 Message Date
Stefano Bonicatti
501b92465b CMake: Change Python version required to be at least 3.5 (#6081)
Removed the restriction for the Python version to be >= 3.6 but < 3.8.
Now it has to be >=3.5, lower versions are EOL.

Removed the search for Python2 too since nothing uses it anymore.

Fixes osquery/osquery#6079
2019-11-26 13:50:21 -05:00
Stefano Bonicatti
8e6fefb47a CMake: explicitly enable ASM_MASM language on Windows (#6065)
This is needed by some third party libraries and
when using Ninja on Windows.
CMake complains that it cannot find the internal variable
for CMAKE_ASM_MASM_COMPILE_OBJECT if it's not active for the whole
project.
2019-11-23 00:14:56 -05:00
thehellajeff
e3b809b4de Added return code to requestShutdown call (#6018) 2019-11-21 10:27:00 -08:00
Stefano Bonicatti
45cf390c2a Force git to create symlinks on the CI (#6064)
git on Windows supports cloning a repository with symlinks
without actually creating them; it will substitute them
with text files containing the target path.
This can potentially break the build of some of osquery
third party libraries.

Moreover this is the default on the CI,
which is different compared to the setup on local machines,
which means that it can hide other kind of issues.
2019-11-20 21:36:23 -05:00
Stefano Bonicatti
93ceef7e5f CMake: Prefer Python 3.7 then 3.6 (#6057)
We are not currently ready for Python 3.8,
so we prefer either the newest 3.7 or 3.6.
2019-11-19 12:54:40 -05:00
Teddy Reed
4147ec8c75
changelog: Add 4.1.1 changelog (#6058) 2019-11-19 12:53:36 -05:00
Stefano Bonicatti
5315d4be8e CMake: Workaround Thrift symlink issue on Windows (#6060)
CMake doesn't support reading and therefore copying Windows symlinks.
A recent update to Thrift creates a symlink in its tutorial folder,
which makes the copy after patch process fail.
As a workaround we avoid copying the tutorial folder,
since we don't care about it anyway.
2019-11-19 12:52:23 -05:00
Daniel Zabari
0fa5751c60 added warning and turned off shallow for git version less than 2.14 (#6055)
added warning and turned off shallow for git version less than 2.14
2019-11-19 11:24:47 -05:00
Teddy Reed
b170a517b5
tables: Fix apt_sources and refactor tests (#6047) 2019-11-19 08:56:18 -05:00
Teddy Reed
66700b9251
fuzzing: Minify logic required for new harnesses (#5942) 2019-11-19 00:25:29 -05:00
Teddy Reed
d3959d578d
tables: Re-enable required-column warning message (#6038) 2019-11-19 00:24:53 -05:00
Teddy Reed
19d4e3fc78
docs: Remove references to old osquery kernel extension (#6051) 2019-11-19 00:23:47 -05:00
Teddy Reed
d52786d08c
parsers: Always apply the options parser first (#6050) 2019-11-19 00:23:15 -05:00
Teddy Reed
fa8ac48a87
http_client: Handle relative redirects (#6049) 2019-11-19 00:22:41 -05:00
packetzero
0f9b15b05b new windows_optional_features table (#5991) 2019-11-18 20:48:11 -08:00
Teddy Reed
e4e95e9e65 docs: Add common code-review checks to PR template (#6048) 2019-11-18 20:44:34 -08:00
Teddy Reed
2d4308b284 tables: Improve integration test debugging and fix deb_packages (#6045) 2019-11-18 20:43:18 -08:00
Teddy Reed
07afc4e2a7 tables: Change atom_packages to use user constraints (#6052) 2019-11-18 20:40:45 -08:00
Teddy Reed
3e437d555d tables: Improve nvram to use input variable names (#6053) 2019-11-18 20:39:37 -08:00
Stefano Bonicatti
8bab38e30d Fix use after move in YARAEventSubscriber::configure (#6054) 2019-11-17 17:04:36 -05:00
Teddy Reed
e9b224b53b
extensions: Skip shell socket when extensions are disabled (#6046) 2019-11-17 16:04:35 -05:00
Teddy Reed
c8cd366c03
docs: Recommend macOS 10.11 deployment target (#6000) 2019-11-15 15:20:34 -05:00
Ted Reed
59dc17266b libraries: Add rocksdb to source_migration 2019-11-15 15:19:48 -05:00
Ted Reed
0dccb51087 libraries: Add ROCKSDB_LITE to public definitions 2019-11-15 15:19:48 -05:00
Ted Reed
c61c56f159 libraries: Reduce rocksdb sources
Several source files are not exporting any symbols.
2019-11-15 15:19:48 -05:00
packetzero
b2e48695ec yara: avoid scanning special files that could hang (#5971) 2019-11-12 18:51:55 -05:00
Teddy Reed
bf9a9ec567
config: Code review for ATC parser (#6029) 2019-11-12 18:46:18 -05:00
packetzero
de54b643e5 extensions compatibility : default columns to INDEX (#6006)
Recent changes in INDEX enforcement broke extensions.

This fix adds a compatibility flag that defaults to the old behavior of INDEX on all columns.
This only affects extension virtual tables, all built in tables have index constraints enforced.
2019-11-12 13:40:48 -05:00
Alessandro Gario
2e2e9032b8
Update SQLite from version 3.29.0-3 to 3.30.1-1 (#6020) 2019-11-12 18:33:01 +01:00
Ted Reed
76720bea2f libraries: Add thrift to source_migration
This commit adds scope_exit and typeof boost subprojects.
These are dependencies of Window's thrift library.
2019-11-12 08:15:53 -05:00
Teddy Reed
6486e6800e libraries: Add boost and icu to source_migration 2019-11-12 08:15:53 -05:00
Teddy Reed
f8d9bd7a15 windows: Add WIN32_LEAN_AND_MEAN to common defines 2019-11-12 08:15:53 -05:00
Stefano Bonicatti
92f67a5f5b Prefer 7zip when installing Strawberry Perl (#6031)
Use a faster method to download and a faster method to
extract zip archives, when available.
2019-11-11 09:53:33 -05:00
Stefano Bonicatti
e571f1aa5a Don't always link to all AWS libraries (#6032)
While in the end the osqueryd binary will require almost all libraries
built and linked, having each intermediate library depend on the whole
set of AWS libraries might result in higher compiling time.
Especially since on some platforms not all libraries are used.

This should speed up the compilation speed on Windows.
2019-11-11 09:52:21 -05:00
Ted Reed
0d4372ed48 libraries: Add lzma and libxml2 to source_migration 2019-11-11 08:35:33 -05:00
Teddy Reed
5c2ecd2047 libraries: Add googletest to source_migration 2019-11-11 08:35:33 -05:00
Teddy Reed
15a2071eaa libraries: Add zstd to source_migration 2019-11-11 08:35:33 -05:00
Teddy Reed
40314421f5 libraries: Add bzip2 to source_migration 2019-11-11 08:35:33 -05:00
Teddy Reed
5b411d7a74 libraries: Add zlib to source_migration 2019-11-11 08:35:33 -05:00
Teddy Reed
58ea43f536
libraries: Add libmagic to source_migration (#6023) 2019-11-09 13:49:33 -05:00
packetzero
af9fc86cb9 yara memory management (#5972) 2019-11-09 13:31:58 -05:00
Teddy Reed
c964db2a49
logging: Change logNumericsAsNumbers to numerics and add docs (#6002)
This is an API change for the format of logged events.
The top-level log field "logNumericsAsNumbers" was introduced to help
migrate from string-encoded numerics to JSON numbers.

This change updates the field to be "numerics", updates the flag to
conform to flag naming conventions, and documents the expectation.
2019-11-09 13:29:14 -05:00
Zachary Wasserman
3ece9e9ef7 Migrate glog and gflags to source build on macOS and Windows (#5902)
Note that glog and gflags must be migrated at the same time, otherwise
linker errors are generated on macOS.
2019-11-08 23:06:09 -05:00
SS
39405447f9 formatting functions py2->3 (PR #6011) 2019-11-09 01:26:45 +01:00
SS
bc62339656 adding utf8 locale to dockerfile (PR #6011) 2019-11-09 01:26:45 +01:00
kumarak
b19eecbe0d Use function waitThenShutdown to wait for signal to shutdown (#6016) 2019-11-08 07:35:24 -05:00
Stefano Bonicatti
e80af8953e Do not use dllimport in glog on Windows (#6008)
Use osquery/logger.h instead of including glog headers.
Reduce warnings about locally defined and imported symbols.
2019-11-08 07:33:51 -05:00
Teddy Reed
11ae5a21b0
docs: Move the schedule_max_drift description into docs (#6003) 2019-11-06 23:34:55 -05:00
Stefano Bonicatti
3c3c7a7d29 Use a custom defined manifest for executables on Windows (#6010)
This uniforms the manifest that gets embedded using msbuild
or Ninja, while also letting us customize it if necessary.
2019-11-06 19:11:27 -05:00
Stefano Bonicatti
b857409cad Fix build with Ninja on Windows (#6007) 2019-11-06 19:07:04 -05:00