Brandon Bennett
65738a73c1
Support for newer versions of libdpkg
...
Libdpkg has some breaking changes in newer versions which prevented
compiling the deb_packages table on Ubuntu 15.04. This change looks for
the libpkg version user pkg-config and adds some preprocessor magic to
support the newer versions.
2015-10-15 16:43:14 -06:00
Teddy Reed
a30a6e7708
Merge pull request #1573 from theopolis/fix_1570
...
[Fix #1570 ] Check for invalid apt sources
2015-10-15 15:21:31 -07:00
Teddy Reed
3be0994933
[ Fix #1570 ] Check for invalid apt sources
...
This fixes a crash identified by @endrazine.
When apt sources data in /etc/apt/sources.list or /etc/apt/sources.list.d/{*}.list contain invalid data/lines the cache_file.GetPkgCache(); call will fail and cache will be nullptr. Subsequent usage results in a SIGSEV.
To reproduce the fault try:
$ zzuf -I /etc/ -r 0.01:0.1 -s 0:1000 -v \
./build/trusty/osquery/osqueryi --registry_exceptions=true --verbose \
"select count(*) from apt_sources"
Signed-off-by: Jonathan Brossard
2015-10-15 15:20:26 -07:00
Teddy Reed
c26f7bf8da
Merge pull request #1565 from PickmanSec/master
...
added comment parsing for profile.py
2015-10-15 12:19:59 -07:00
Teddy Reed
9ddf370e88
Merge pull request #1551 from theopolis/more_remote_docs
...
Convert wiki to UNIX format and refresh most content
2015-10-15 12:19:06 -07:00
Teddy Reed
2e7415f871
Convert wiki to UNIX format and refresh most content
2015-10-15 12:18:16 -07:00
Teddy Reed
d757d87195
Merge pull request #1574 from pathcl/master
...
sudo added as requeriment
2015-10-14 18:09:50 -07:00
Michael George
ed00e54aa7
added comment parsing
...
added packs to profiling
added comment scrubing.
2015-10-14 17:04:38 -07:00
Luis San Martin
0f0d873a96
sudo added as requeriment
2015-10-14 20:05:12 -03:00
Teddy Reed
82b0ccf782
Merge pull request #1553 from arubdesu/docs-darwinSysReqs
...
explicitly call out OS and requirements at top of OS X install doc
2015-10-13 11:26:32 -07:00
Allister Banks
d79d02dde5
explicitly call out OS compatibility at top of OS X install doc
...
Reordered install types, Pointed to the CI build status as an indication
of platform support, moved up the line about pkg/lib dependencies
to be after the pkg section. Someone stop Atom from tacking newlines to
the ends of files on save, GitHub, you’re not the boss of me!
2015-10-13 14:10:38 -04:00
Teddy Reed
6678440b48
Merge pull request #1561 from theopolis/fix_tests_4
...
Minor fix, return an empty query data
2015-10-13 10:06:59 -07:00
Teddy Reed
84d0e9d7b9
Merge pull request #1562 from theopolis/fix_1559
...
[Fix #1559 ] Allow boost.filesystem incorrect LC_CTYPE
2015-10-13 10:06:31 -07:00
Teddy Reed
201fbabb28
[ Fix #1559 ] Allow boost.filesystem incorrect LC_CTYPE
2015-10-13 09:55:44 -07:00
Teddy Reed
1c12d274f4
Minor fix, return an empty query data
2015-10-13 09:25:10 -07:00
Teddy Reed
688d289884
Merge pull request #1557 from theopolis/fix_tests_3
...
Fix test_5_daemon_sigint, and hardware_events tests
2015-10-13 08:49:24 -07:00
Teddy Reed
0440bb970f
Fix test_5_daemon_sigint, and hardware_events tests
2015-10-13 08:40:23 -07:00
Mike Arpaia
dea0b4d1c9
Merge pull request #1542 from keeleysam/keeleysam-patch-1
...
Use full key for apt
2015-10-12 16:55:18 -07:00
Teddy Reed
4852e3525f
Merge pull request #1550 from theopolis/ext_clean
...
Extension managers should clean extension sockets when starting
2015-10-12 13:36:10 -07:00
Teddy Reed
171bfecd20
Merge pull request #1552 from theopolis/glog_benchmark
...
Build Glog with OS X ABI, add SKIP_BENCHMARK
2015-10-12 13:35:45 -07:00
Teddy Reed
34717fda29
Merge pull request #1554 from mlw/fix-lingering-socket-fds
...
Close socket fds when finished with them
2015-10-12 13:32:52 -07:00
Matthew White
2446b22a5f
Close socket fds when finished with them
2015-10-12 09:59:09 -07:00
Teddy Reed
b7a2d861bf
Build Glog with OS X ABI, add SKIP_BENCHMARK
2015-10-11 14:37:49 -07:00
Teddy Reed
c7ff3dfb4f
Merge pull request #1549 from theopolis/more_11
...
Bumb RocksDB to ERROR, fix OS X kernel_info, silence compile warnings
2015-10-11 20:39:56 +01:00
Teddy Reed
6b16720039
Fix kernel_info on OS X, remove md5
2015-10-11 11:43:42 -07:00
Teddy Reed
fb56646623
Restrict RocksDB log level to ERROR
2015-10-11 10:50:56 -07:00
Javier Marcos
c063e6f3d3
Merge pull request #1545 from javuto/fix_default_config
...
Fixing default configuration syntax, trailing comma
2015-10-11 14:00:09 +01:00
Mike Arpaia
4d0cd46f42
Merge pull request #1539 from theopolis/nit_101
...
Minor nits around distributed CLIs
2015-10-09 14:55:05 -07:00
Javier Marcos
7442392c7f
Fixing default configuration syntax, trailing comma
2015-10-09 14:50:00 +02:00
Teddy Reed
dbdf64ed6e
Use better defines for 10.11
2015-10-08 07:22:48 -07:00
Teddy Reed
d5a7498881
Extension managers should clean extension sockets when starting
2015-10-08 06:47:23 -07:00
Samuel Keeley
e1b6f917fd
Use full key for apt
...
The 8 digit key is not secure
2015-10-07 16:00:38 -07:00
Mike Arpaia
1d69a056d8
Merge pull request #1541 from zenfish/patch-1
...
Typo in linux installation docs
2015-10-07 10:50:08 -07:00
Dan Farmer
2413615885
Typo in linux installation docs
...
Added the character "d" to two lines to fix a typo.
From:
sudo service osquery start
sudo service osquery status
To:
sudo service osqueryd start
sudo service osqueryd status
2015-10-06 18:36:18 -07:00
Teddy Reed
689ae4c865
Minor nits around distributed CLIs
2015-10-02 11:33:50 -07:00
Mike Arpaia
5789d889f4
Merge pull request #1538 from marpaia/discovery_queries
...
[fix #1536 ] Schedule iteration pass-by-reference
2015-09-30 15:50:05 -07:00
Mike Arpaia
65df593d33
[ fix #1536 ] Schedule iteration pass-by-reference
...
There was a bug in the `osquery::Schedule` container object such that,
when the iteration through the schedule occured, pack objects were being
passed by value (copied) instead of passed by reference. Thus, the
discovery query would be executed, the object's cache would be updated,
and then the object would go out of scope and be destructed, thus
leaving the original object without ever having ran the discovery query.
This caused discovery queries to thrash. Bad times.
I added a new test so that we don't regress here as well as const'd a
few functions that should have been const in `osquery::Pack`.
2015-09-30 15:41:43 -07:00
Teddy Reed
f5d478ff6c
Merge pull request #1537 from mlw/fix-empty-config-md5-hash
...
Fixed bug when checking if config is valid
2015-09-30 13:33:20 -07:00
Teddy Reed
ad4b41cb84
Merge pull request #1524 from mathieuk/build_on_debian_wheezy_with_benchmark_change
...
Build on debian wheezy with recent changes
2015-09-30 13:32:55 -07:00
Matthew White
25dbd33e1e
Fixed bug when checking if config is valid
2015-09-30 10:50:28 -07:00
Mathieu Kooiman
d26d12a63c
Make osquery build on debian again
2015-09-30 19:37:56 +02:00
Teddy Reed
2a71162b0c
Merge pull request #1534 from theopolis/glob_fix
...
Fix potential hang with recursive globbing
2015-09-28 18:06:53 -07:00
Teddy Reed
ef50adbb14
Merge pull request #1533 from theopolis/fix_1531
...
[Fix #1531 ] Use libarchive finish for safari_extension parsing
2015-09-28 18:06:42 -07:00
Teddy Reed
66888de80a
Fix potential hang with recursive globbing
2015-09-28 17:50:25 -07:00
Teddy Reed
31b7966088
[ Fix #1531 ] Use libarchive finish for safari_extension parsing
2015-09-28 17:33:42 -07:00
Teddy Reed
cbf9a17b4a
Merge pull request #1530 from theopolis/fix_db_proc
...
[#1529 ] Allow DB Readonly with RocksDB lite
2015-09-28 09:50:36 -07:00
Teddy Reed
bbac2cf07f
[ #1529 ] Allow DB Readonly with RocksDB lite
2015-09-28 01:50:32 -07:00
Teddy Reed
64c18a70a9
Merge pull request #1525 from theopolis/process_adds
...
Add state, group, and nice to processes
2015-09-24 14:43:17 -07:00
Teddy Reed
5890901c00
Add state, group, and nice to processes
2015-09-24 13:11:46 -07:00
Teddy Reed
2d4150499a
Merge pull request #1526 from theopolis/linux_sigs
...
[#1488 ] Shutdown Linux event publishers responsibly
2015-09-24 11:08:41 -07:00