summaryrefslogtreecommitdiff
path: root/dev-debug/sysdig/files
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:24:49 -0500
commita3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch)
tree0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-debug/sysdig/files
parentbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff)
downloadbaldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz
baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip
Adding metadata
Diffstat (limited to 'dev-debug/sysdig/files')
-rw-r--r--dev-debug/sysdig/files/0.38.1-scap-loader.patch32
-rw-r--r--dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch54
-rw-r--r--dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch35
-rw-r--r--dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch39
4 files changed, 0 insertions, 160 deletions
diff --git a/dev-debug/sysdig/files/0.38.1-scap-loader.patch b/dev-debug/sysdig/files/0.38.1-scap-loader.patch
deleted file mode 100644
index 1f350948b37a..000000000000
--- a/dev-debug/sysdig/files/0.38.1-scap-loader.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-
-Sanitize the scap loader script to not attempt driver downloads or compilation
-by default, which would not work anyway as sysdig does not host prebuilt modules
-for Gentoo.
-
-Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
-
---- sysdig-0.38.0/scripts/scap-driver-loader.in~ 2024-06-17 11:14:55.000000000 +0200
-+++ sysdig-0.38.0/scripts/scap-driver-loader.in 2024-06-17 11:14:55.000000000 +0200
-@@ -662,8 +662,8 @@ print_usage() {
- echo "Options:"
- echo " --help show brief help"
- echo " --clean try to remove an already present driver installation"
-- echo " --compile try to compile the driver locally (default true)"
-- echo " --download try to download a prebuilt driver (default true)"
-+ echo " --compile try to compile the driver locally (default false)"
-+ echo " --download try to download a prebuilt driver (default false)"
- echo " --source-only skip execution and allow sourcing in another script"
- echo ""
- echo "Environment variables:"
-@@ -770,11 +770,6 @@ while test $# -gt 0; do
- esac
- done
-
--if [ -z "$has_opts" ]; then
-- ENABLE_COMPILE="yes"
-- ENABLE_DOWNLOAD="yes"
--fi
--
- if [ -z "$source_only" ]; then
- echo "* Running scap-driver-loader for: driver version=${DRIVER_VERSION}, arch=${ARCH}, kernel release=${KERNEL_RELEASE}, kernel version=${KERNEL_VERSION}"
-
diff --git a/dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch b/dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch
deleted file mode 100644
index f2ea81289e0f..000000000000
--- a/dev-debug/sysdig/files/libs-0.20.0-fix-INET6_ADDRSTRLEN-buffer-size.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-Backported patch from: https://github.com/falcosecurity/libs/pull/2574
-
-glibc-2.42 added __inet_ntop_chk fortification, which started to fail:
-
-*** buffer overflow detected ***: terminated
-Program received signal SIGABRT, Aborted.
-0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
-(gdb) bt
-#0 0x00007ffff629b0dc in __pthread_kill_implementation () from /lib64/libc.so.6
-#1 0x00007ffff6242572 in raise () from /lib64/libc.so.6
-#2 0x00007ffff6229f3b in abort () from /lib64/libc.so.6
-#3 0x00007ffff622b148 in __libc_message_impl.cold () from /lib64/libc.so.6
-#4 0x00007ffff6327337 in __fortify_fail () from /lib64/libc.so.6
-#5 0x00007ffff6326c92 in __chk_fail () from /lib64/libc.so.6
-#6 0x00007ffff6327a62 in __inet_ntop_chk () from /lib64/libc.so.6
-#7 0x000055555569da3d in inet_ntop (__af=10, __src=0x555555ee0800, __dst=0x7fffffff4f90 "\260P\377\377\377\177", __dst_size=100) at /usr/include/bits/inet-fortified.h:36
-#8 ipv6tuple_to_string[abi:cxx11](ipv6tuple*, bool) (tuple=0x555555ee0800, resolve=false) at /tmp/portage/dev-debug/sysdig-0.40.1/work/libs-0.20.0/userspace/libsinsp/utils.cpp:1110
-
-Pass a target buffer size appropriate for IPv addresses.
-
---- libs-0.20.0/userspace/libsinsp/utils.cpp
-+++ libs-0.20.0-new/userspace/libsinsp/utils.cpp
-@@ -1089,13 +1089,13 @@ std::string ipv4tuple_to_string(ipv4tupl
- }
-
- std::string ipv6serveraddr_to_string(ipv6serverinfo* addr, bool resolve) {
-- char address[100];
-- char buf[200];
-+ char address[INET6_ADDRSTRLEN];
-
-- if(NULL == inet_ntop(AF_INET6, addr->m_ip.m_b, address, 100)) {
-+ if(NULL == inet_ntop(AF_INET6, addr->m_ip.m_b, address, INET6_ADDRSTRLEN)) {
- return std::string();
- }
-
-+ char buf[200];
- snprintf(buf,
- 200,
- "%s:%s",
-@@ -1107,12 +1107,12 @@ std::string ipv6serveraddr_to_string(ipv
-
- std::string ipv6tuple_to_string(ipv6tuple* tuple, bool resolve) {
- char source_address[INET6_ADDRSTRLEN];
-- if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_sip.m_b, source_address, 100)) {
-+ if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_sip.m_b, source_address, INET6_ADDRSTRLEN)) {
- return std::string();
- }
-
- char destination_address[INET6_ADDRSTRLEN];
-- if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_dip.m_b, destination_address, 100)) {
-+ if(NULL == inet_ntop(AF_INET6, tuple->m_fields.m_dip.m_b, destination_address, INET6_ADDRSTRLEN)) {
- return std::string();
- }
-
diff --git a/dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch b/dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch
deleted file mode 100644
index 238cd12ac540..000000000000
--- a/dev-debug/sysdig/files/libs-0.20.0-fix-buffer-overrun-reading-sockets-from-procfs.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Patch from:
-https://github.com/falcosecurity/libs/commit/de3f4cac9233682eae63c63377c82efb649679f5
-
-From de3f4cac9233682eae63c63377c82efb649679f5 Mon Sep 17 00:00:00 2001
-From: Shane Lawrence <shane@lawrence.dev>
-Date: Thu, 20 Feb 2025 14:55:41 +0000
-Subject: [PATCH] Fix buffer overrun reading sockets from procfs.
-
-Signed-off-by: Shane Lawrence <shane@lawrence.dev>
----
- userspace/libscap/linux/scap_fds.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/userspace/libscap/linux/scap_fds.c b/userspace/libscap/linux/scap_fds.c
-index f98ac3f32f..73e99ca428 100644
---- a/userspace/libscap/linux/scap_fds.c
-+++ b/userspace/libscap/linux/scap_fds.c
-@@ -766,7 +766,7 @@ int32_t scap_fd_read_ipv4_sockets_from_proc_fs(const char *dir,
- break;
- }
-
-- while(*scan_pos == ' ' && scan_pos < scan_end) {
-+ while(scan_pos < scan_end && *scan_pos == ' ') {
- scan_pos++;
- }
-
-@@ -974,7 +974,7 @@ int32_t scap_fd_read_ipv6_sockets_from_proc_fs(char *dir,
- break;
- }
-
-- while(*scan_pos == ' ' && scan_pos < scan_end) {
-+ while(scan_pos < scan_end && *scan_pos == ' ') {
- scan_pos++;
- }
-
diff --git a/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch b/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch
deleted file mode 100644
index f0c16d176d12..000000000000
--- a/dev-debug/sysdig/files/libs-0.20.0-fix-driver-and-bpf-makefile-for-kernel-6.13.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-Patch from:
-https://github.com/falcosecurity/libs/commit/7f01ec89c565fcb45ade833b1312ae69637bc4ec
-
-From: Federico Di Pierro <nierro92@gmail.com>
-Date: Fri, 28 Mar 2025 08:35:23 +0100
-Subject: [PATCH] fix(driver): fix driver and bpf makefile for linux 6.13.
-
-Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
----
- driver/Makefile.in | 2 +-
- driver/bpf/Makefile | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/driver/Makefile.in b/driver/Makefile.in
-index 7b1fdc2dba..ec60103d0d 100644
---- a/driver/Makefile.in
-+++ b/driver/Makefile.in
-@@ -29,7 +29,7 @@ install: all
-
- else
-
--KERNELDIR ?= $(CURDIR)
-+KERNELDIR ?= $(realpath $(objtree))
- #
- # Get the path of the module sources
- #
-diff --git a/driver/bpf/Makefile b/driver/bpf/Makefile
-index 58d1b11165..c94647c608 100644
---- a/driver/bpf/Makefile
-+++ b/driver/bpf/Makefile
-@@ -28,7 +28,7 @@ clean:
-
- else
-
--KERNELDIR ?= $(CURDIR)
-+KERNELDIR ?= $(realpath $(objtree))
- #
- # Get the path of the module sources
- #