Skip to content
Teddy Reed edited this page Jan 14, 2015 · 2 revisions

Linux Kernel Instrumentation

osquery's first bit of linux kernel instrumentation consists of camb (pronounce CAM-bee), which is a kernel module that exposes via sysfs some kernel integrity information. It currently lives out-of-tree. The below guide has been tested on 64-bit Ubuntu, but "most likely works" with other distros with minor tweaking.

Build requirements:

  1. Linux kernel headers
  2. System.map file for a built kernel

Build steps:

git clone https://github.com/facebook/osquery.git
sudo apt-get install -y linux-headers-$(uname -r)
cd kernel/linux
sudo make SMAP=/boot/System.map-$(uname -r) KDIR=/lib/modules/$(uname -r)/build

Install steps:

sudo insmod camb.ko

Clone this wiki locally