diff --git a/velociraptor-client.spec b/velociraptor-client.spec index c96da5f..185f00e 100644 --- a/velociraptor-client.spec +++ b/velociraptor-client.spec @@ -17,7 +17,7 @@ %define projname velociraptor %define vendor_version 0.6.4.2~git86.b5931f7 -%define vmlinux_h_version 5.18.9-2-default +%define vmlinux_h_version 5.14.21150400.22-150400-default Name: velociraptor-client Version: 0.6.4.2~git86.b5931f7 @@ -73,11 +73,8 @@ sed -ie "s/\(VERSION *= \).*/\1 \"%{version}\"/" constants/constants.go mkdir -p third_party/libbpfgo/output -# Any release more recent than SLE 15 SP3/Leap 15.3 will have this -if ! test -e /sys/kernel/btf/vmlinux; then - cp vmlinux.h-%{vmlinux_h_version}/vmlinux-%{_arch}.h \ - third_party/libbpfgo/output/vmlinux.h -fi +cp vmlinux.h-%{vmlinux_h_version}/vmlinux-%{_arch}.h \ + third_party/libbpfgo/output/vmlinux.h # These just clutter the GUI and we don't have Windows clients # Note: There are dependencies on these that need to be resolved before diff --git a/velociraptor.spec b/velociraptor.spec index 0fd6d56..ecb9396 100644 --- a/velociraptor.spec +++ b/velociraptor.spec @@ -17,7 +17,7 @@ %define projname velociraptor %define vendor_version 0.6.4.2~git86.b5931f7 -%define vmlinux_h_version 5.18.9-2-default +%define vmlinux_h_version 5.14.21150400.22-150400-default Name: velociraptor Version: 0.6.4.2~git86.b5931f7 @@ -86,11 +86,8 @@ sed -ie "s/\(VERSION *= \).*/\1 \"%{version}\"/" constants/constants.go mkdir -p third_party/libbpfgo/output -# Any release more recent than SLE 15 SP3/Leap 15.3 will have this -if ! test -e /sys/kernel/btf/vmlinux; then - cp vmlinux.h-%{vmlinux_h_version}/vmlinux-%{_arch}.h \ - third_party/libbpfgo/output/vmlinux.h -fi +cp vmlinux.h-%{vmlinux_h_version}/vmlinux-%{_arch}.h \ + third_party/libbpfgo/output/vmlinux.h # These just clutter the GUI and we don't have Windows clients # Note: There are dependencies on these that need to be resolved before diff --git a/vmlinux.h-5.14.21150400.22-150400-default.tar.xz b/vmlinux.h-5.14.21150400.22-150400-default.tar.xz new file mode 100644 index 0000000..0e89d73 --- /dev/null +++ b/vmlinux.h-5.14.21150400.22-150400-default.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3437ed2f82883d508c385951d3d146f37f7c954fa0da6021494aa15ff19dc9a0 +size 590616 diff --git a/vmlinux.h-5.18.9-2-default.tar.xz b/vmlinux.h-5.18.9-2-default.tar.xz deleted file mode 100644 index 5552aa4..0000000 --- a/vmlinux.h-5.18.9-2-default.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75a6a812bbed4f1e7abd5a3c02d1658a96b43d3c4fc99a155739c256a8da8245 -size 457380