Zack Olson
10/30/2023, 6:23 PMseph
nftables
is something we’ll need, and if we can only get it via library than we should pull in one of those. @alessandrogario @Stefano Bonicatti y’all are linux folks, what do you think? (FYI, Zack works with me at Kolide)Stefano Bonicatti
11/01/2023, 6:05 PMStefano Bonicatti
11/01/2023, 6:09 PMStefano Bonicatti
11/01/2023, 6:09 PMStefano Bonicatti
11/01/2023, 6:12 PMStefano Bonicatti
11/01/2023, 6:16 PMStefano Bonicatti
11/01/2023, 6:16 PMseph
Zack Olson
11/01/2023, 6:30 PMStefano Bonicatti
11/01/2023, 6:34 PMZack Olson
11/01/2023, 6:44 PMStefano Bonicatti
11/01/2023, 6:56 PMaudit_status
, which is used internally in the library to store the answer from the kernel about the status of audit, has changed between 3.19 and latest:
https://elixir.bootlin.com/linux/v3.19.8/source/include/uapi/linux/audit.h#L406
https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/audit.h#L464Stefano Bonicatti
11/01/2023, 7:02 PMseph
Stefano Bonicatti
11/01/2023, 7:23 PMsrc
directory under another dir with the name of the library here https://github.com/osquery/osquery/tree/master/libraries/cmake/source
Then you have to write the CMakeLists.txt that will build the library as its original build system was doing, but with everything hardcoded.
Finally create a .cmake
file here: https://github.com/osquery/osquery/tree/master/libraries/cmake/source/modules which imports the submodule, and add the name of the libraries here too: https://github.com/osquery/osquery/blob/4a8d99b87be22cf0352a3cf1b7320ffc47461072/CMakeLists.txt#L124Zack Olson
11/01/2023, 7:25 PMStefano Bonicatti
11/01/2023, 7:27 PMStefano Bonicatti
11/01/2023, 7:28 PM