sysdig: patch 'main.c' to fix build for 6.10-kernel
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
clang,
|
||||
libbpf,
|
||||
bpftools,
|
||||
fetchurl,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -49,6 +50,13 @@ let
|
||||
hash = "sha256-FIlnJsNgofGo4HETEEpW28wpC3U9z5AZprwFR5AgFfA=";
|
||||
};
|
||||
|
||||
# "main.c" from master after (https://github.com/falcosecurity/libs/pull/1884)
|
||||
# Remove when an upstream release includes the driver update
|
||||
driverKernel610MainC = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/falcosecurity/libs/fa26daf65bb4117ecfe099fcad48ea75fe86d8bb/driver/main.c";
|
||||
hash = "sha256-VI/tOSXs5OcEDehSqICF3apmSnwe4QCmbkHz+DGH4uM=";
|
||||
};
|
||||
|
||||
version = "0.38.0";
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
@@ -109,6 +117,7 @@ stdenv.mkDerivation {
|
||||
|
||||
cp -r ${driver} driver-src
|
||||
chmod -R +w driver-src
|
||||
cp ${driverKernel610MainC} driver-src/driver/main.c
|
||||
|
||||
cmakeFlagsArray+=(
|
||||
"-DFALCOSECURITY_LIBS_SOURCE_DIR=$(pwd)/libs"
|
||||
|
||||
Reference in New Issue
Block a user