Vinny
04/12/2024, 5:38 AMcd build_folder
mkdir package_data
where I am assuming the build_folder
means just the build
directory explained in the build process? Ok I am already there, so I create the directory package_data
but then when I run:
export DESTDIR=$(pwd)/package_data
cmake --build . --target install
Nothing gets installed in the package_data directory
😢Mike Myers
04/12/2024, 6:35 PM--target package
?Vinny
04/12/2024, 7:01 PMcmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCPACK_GENERATOR=DEB \
-DOSQUERY_PACKAGE_VERSION=${OSQUERY_VERSION} \
-DOSQUERY_DATA_PATH=${DESTDIR} \
-DOSQUERY_SOURCE_DIRECTORY_LIST="osquery-src-path;osquery-build-path" \
../osquery-packaging
cmake --build . --target package
Update: I was able to get data into package_data
, but when I run the first long command above, it adds more data to the package_data directory, but the second command cmake --build . --target package
fails with the following:Stefano Bonicatti
04/12/2024, 8:49 PMosquery
repository.
You would then move to the osquery-packaging
repository and point that (using OSQUERY_DATA_PATH
) to where you installed those files.Stefano Bonicatti
04/12/2024, 8:50 PMosquery-packaging
build folder, not osquery
Stefano Bonicatti
04/12/2024, 8:54 PMosquery
2. Compile osquery
3. Install osquery
using DESTDIR
to point it to a folder of your choosing (this is package_data in the wiki. It will contain the files needed to create a package)
4. Clone osquery-packaging
, separately
5. From a subfolder of the osquery-packaging
repo you've created (could be called what you want but lets say it's build
), run the last cmake command, pointing OSQUERY_DATA_PATH
to the package_data
folder in step 3Vinny
04/12/2024, 9:04 PMVinny
04/13/2024, 6:12 AMStefano Bonicatti
04/13/2024, 9:53 AMVinny
04/18/2024, 5:43 PME0418 13:41:16.476779 5687 aws_util.cpp:429] Exception making HTTP POST request to URL (<https://firehose.us-east-1.amazonaws.com>): certificate verify failed
I tried following this guide but still failing: https://zercurity.medium.com/capturing-osquery-query-results-with-aws-firehose-kinesis-and-aws-athena-25b3430a4471Vinny
04/18/2024, 7:04 PM/opt/osquery/share/osquery/certs/certs.pem
which contain root certs from AmazonVinny
04/18/2024, 7:04 PM