Commit Graph

191 Commits

Author SHA1 Message Date
calve
600f21dcfb flags: Implement enable_tables (#6150)
Adds an ``--enable_tables`` CLI flag to specify a limited set of
tables to expose. This is the contrary of ``--disable_tables``.
2020-01-17 18:59:20 -05:00
Zachary Wasserman
039d7353cf
Use cert bundle in repo for make_windows_package script (#6114)
Instead of using the path to an openssl provided cert bundle (which no
longer exists in recent installs of openssl from Chocolatey), use the
cert bundle already stored in the repo.

Fixes #6109
2019-12-10 15:09:20 -08:00
Teddy Reed
f3b3cd1c7d
linux: Update systemd service to use KillMode=control-group (#6096) 2019-12-05 20:42:22 -05:00
Teddy Reed
818c05ce4a cleanup: Remove old scripts and tooling (#5983) 2019-11-05 02:30:10 +01:00
Teddy Reed
b47e34936c
cpack: Add Debian copyright file and Augeas license (#5951) 2019-10-29 19:03:27 -04:00
Teddy Reed
1803972b2f
cpack: Use productbuild shim to override package_id (#5934) 2019-10-27 13:23:01 -04:00
Teddy Reed
5ff42eccb6
packaging: Fix up make_linux_package to work for version 4+ (#5825) 2019-10-20 11:54:42 -04:00
adhamehab
657932cd2c Upgrade Python tools to Python3 (#5846) 2019-10-05 10:30:10 -04:00
grrrrrrrrrr
31e6dfdfeb Fix make rpm script to not break because of symlinks (#5780)
Signed-off-by: grant <grantseltzer@gmail.com>
2019-09-26 07:32:21 -04:00
Teddy Reed
e5599c01f3
packaging: Fix up make_osx_package to work for version 4+ (#5827) 2019-09-25 23:00:01 -04:00
Teddy Reed
bbec01d5fa
Revert "Remove deprecated macOS package generator (#5808)" (#5821)
This reverts commit 54289cd3d4.
2019-09-21 19:02:38 -04:00
Alessandro Gario
54289cd3d4
Remove deprecated macOS package generator (#5808) 2019-09-16 17:03:36 +02:00
Stefano Bonicatti
57f9916473 Patch environment file path in initd and systemd scripts during DEB packaging (#5802)
Also add a check to systemd script to create and empty config file,
if this is missing.

Co-authored-by: seph <seph@directionless.org>
2019-09-12 18:02:23 -04:00
Nick Anderson
11d3ff476a deploy: updating msi build script (#5794)
Summary: This adds a few minor updates to the MSI build function. First
it keeps build artifacts located in `build/msi` for ease of access.
Further it updates component referneces to be x64 compatible. Finally it
updates a few path references to reflect the new repo layout, as well as
changes a few references for author and ownership information to be
osquery.

Test Plan: Will update with sample MSI builds for Cmake.
2019-09-12 13:13:17 -04:00
Nick Anderson
492fb79390
deploy: update windows choco scripts to migrate service to Program Files (#5790) 2019-09-11 08:24:17 -07:00
Teddy Reed
f4bd3e1630
deployment: Add Mozilla CA certificate store 2019-08-28 (#5773)
* deployment: Add Mozilla CA certificate store 2019-08-28

This is the cacerts file that was once proviced by the OpenSSL Homebrew
formula. The osquery packages in 3.x and previous provided this store as
the default / fallback.

The hash can be corroborated via:
https://curl.haxx.se/ca/cacert.pem.sha256

38b6230aa4bee062cd34ee0ff6da173250899642b1937fc130896290b6bd91e3

* install certs.pem directly from source
2019-09-08 17:42:01 -04:00
Mike Myers
9b1c1d58f9 Fix bugs and update pathname variables in MSI package build script (#5733) 2019-09-04 08:08:55 -04:00
Nick Anderson
1af15ed4f3 packaging: updating packaging script to support Buck binary output (#5647) 2019-08-19 17:39:29 -04:00
seph
54f967a528
Change MSI Service Error handling (#5467)
The Wix configuration sets the service as _critical_. As I understand it, this means failures to start osquery, are considered startup failures, and will trigger a reboot. As there are occasional windows bugs causing a failure to start, this seems unfortunate. I think hit someone on slack today 

This PR changes that to _normal_

Docs are http://wixtoolset.org/documentation/manual/v3/xsd/wix/serviceinstall.html
2019-07-19 09:51:41 -07:00
Nick Anderson
214302bdeb
windows: updating more references to osquery installation path (#5580) 2019-06-05 12:45:40 -07:00
Nick Anderson
46b9c8f800
deploy: updating MSI package to install to Program Files (#5579) 2019-06-05 09:46:41 -07:00
Nick Anderson
c10914f199
deployment: updating osquery installation path to reside in Program Files (#5568) 2019-05-17 10:03:37 -07:00
Jesse Kornblum
c7355b19aa Update osquery licensing wording (#5452)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5452

As suggested in another diff, this diff updates the language we use to describe the osquery licensing terms. We are changing all instances of

//This source code is licensed as defined on the LICENSE file found in the root directory of this source tree.//

to

//This source code is licensed in accordance with the terms specified in the LICENSE file found in the root directory of this source tree.//

We accomplish this with a codemod:

  $ codemod -md xplat/osquery/oss --extensions cpp,h,in,py,sh,mm,ps1 "(.\s+)This source code is licensed as defined on the LICENSE file found in the(.*)root directory of this source tree\." "\1This source code is licensed in accordance with the terms specified in\2the LICENSE file found in the root directory of this source tree."

Reviewed By: fmanco

Differential Revision: D14131290

fbshipit-source-id: 52c90da342263e2a80f5a678ecd760c19cf7513e
2019-02-19 10:59:48 -08:00
Jesse Kornblum
910e46b28f Add Facebook Copyright message to Facebook owned, open-source osquery files (#5445)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5445

This diff adds a Facebook copyright header to files in the osquery open source repository which:
* Facebook owns
* Do not currently have a Facebook copyright header

Reviewed By: marekcirkos

Differential Revision: D14122845

fbshipit-source-id: 5a0fea10189ec4ec893f7a036911fd51de0e01ae
2019-02-18 13:51:04 -08:00
Filipe Manco
e00a30ef87 Fix files with no newline at end of file
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5377

Reviewed By: jessek

Differential Revision: D13750577

fbshipit-source-id: a646ff61dcbf1559a9d6f8379fa0295bd3be0451
2019-01-21 11:51:54 -08:00
Filipe Manco
a67525fae1 Fix LICENSE information on file headers (#5375)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5375

LICENSE is now defined in a single file on the root of the project, update the
header to contain that information.

**Project LICENSE did not change.**

Reviewed By: akindyakov

Differential Revision: D13750575

fbshipit-source-id: 1e608a81b260b8395f9d008fc67f463160c1fc2b
2019-01-21 11:51:54 -08:00
seph
637eb104b8 Spelling (#5256)
Summary:
While running `misspell` on a different codebase. I happened to notice that some misspellings in the osquery code base. So, I fixed them
Pull Request resolved: https://github.com/facebook/osquery/pull/5256

Reviewed By: guliashvili

Differential Revision: D13670897

Pulled By: fmanco

fbshipit-source-id: 5d33d858284955c376e8c3980acdf366d4edf3d3
2019-01-16 08:17:07 -08:00
Julien
258f728f41 deploy: add osquery.man to wix config for New-MsiPackage - #5067 (#5105) 2018-09-05 14:06:21 -07:00
Chris
f0ed24d826 Initd script (#4661) 2018-07-03 12:00:56 -04:00
Max Kareta
690f8f8672
do not strip everything for release build (#4623) 2018-06-21 18:29:37 +01:00
Nick Anderson
9259da6cc9
deploy: set default flagfile to utf-8 for MSI package (#4559) 2018-06-15 10:18:49 -04:00
Filipe Manco
9bfc6eb7a3
Remove useless links on debug package creation (#4412) 2018-05-22 18:27:46 +01:00
Filipe Manco
892fa79e75
Fix debuginfo build-id subdirectory (#4401) 2018-05-18 18:41:12 +01:00
Nick Anderson
4125297158
tables: adds a Powershell events table to Windows (#4351) 2018-05-07 10:26:43 -07:00
Filipe Manco
96a5bdde7f
Remove --logger_min_stderr from service files (#4361) 2018-05-03 16:56:55 +01:00
Filipe Manco
293f2d2628
Improve debugging (#4277) 2018-04-16 16:00:54 +01:00
Nick Anderson
7818b94165
deploy: fixing version bug in windows msi build (#4214) 2018-03-26 13:02:52 -07:00
Nick Anderson
99c8debe4f
deployment: adding default path for Windows packs to example conf (#4159) 2018-02-27 12:22:55 -08:00
TacoRocket
a666d83164 Updated the windows package build script to be clearer on help and usage. Included the proper Get-Help function included in Windows to display help. Changed help from bool to switch where simply typing -h or -help will display the Get-Help information. Included aliases for the script parameters to help those who like to write options certain ways. Also included parameters names that were clearer to identify but the old parameter names are included as aliases. Both will work if identified so no workflow changes should occur. By default will still build chocolatey (#4117) 2018-02-18 12:12:58 -08:00
Nick Anderson
290f326957
[Fix 4097] Derive Windows groups for internationalization in MSI (#4112) 2018-02-07 22:28:19 -08:00
Teddy Reed
bf2b464301 packages: Install osqueryi as a symlink (#4074) 2018-01-31 19:59:00 -08:00
Nick Anderson
d3a847ab02
deploy: fixing error and warning with windows msi package (#4079) 2018-01-23 17:27:24 -08:00
Mitchell Grenier
099fb39af7
Add signing functionality to make_osx_package (#4045) 2018-01-08 21:59:42 -08:00
Teddy Reed
f6d077cbf7
license: Change license to Apache 2.0 and GPLv2 (#4007) 2017-12-18 16:04:06 -08:00
Teddy Reed
70a214b8a6
logger: Remove invalid assumptions about status logging (#4001) 2017-12-17 09:44:15 -08:00
Alessandro Gario
e859276739 logging: Adds Windows Event Log support (#3887) 2017-12-12 14:15:38 -08:00
Nick Anderson
9726d41c7c
build: adding helper function to add paths to SYSTEM path (#3986) 2017-12-05 10:43:20 -08:00
Tom Crayford
fb354b7d22 only daemon-reload if systemd is running (#3979) 2017-11-30 09:18:00 -08:00
Nick Anderson
ec2fc1a0c1
deployment: allowing for extra files to be bundled (#3936) 2017-11-17 09:23:10 -08:00
Nick Anderson
582f638706
deploy: allowing for MSI packages to upgrade previous installers (#3927) 2017-11-16 07:50:01 -08:00