eBPF-based security platform
upatch: keep a upatch's full name in its map views
Daniel Borkmann5d8dea05b4f0
diff --git a/util/upatch_maps.h b/util/upatch_maps.hindex 5c5385d1..e394d021 100644--- a/util/upatch_maps.h+++ b/util/upatch_maps.h@@ -13,6 +13,8 @@#include <stddef.h>#include <stdint.h>+#include <shirudo/upatch.h>+#include "upatch_resolve.h"/* Default truncation cap; --show-full lifts it. */@@ -50,7 +52,7 @@ struct shirudo_serial_page {};struct shirudo_map_view {- char upatch[64];+ char upatch[SHIRUDO_UPATCH_NAME_MAX + 1];char name[SHIRUDO_MAP_NAME_MAX + 1];char location[SHIRUDO_UPATCH_LOCATION_MAX];uint32_t type; /* BPF_MAP_TYPE_* */@@ -84,7 +86,7 @@ void shirudo_map_view_free(struct shirudo_map_view *v);/* Name, type and max_entries alone, without reading entries. */struct shirudo_map_summary {- char upatch[64];+ char upatch[SHIRUDO_UPATCH_NAME_MAX + 1];char name[SHIRUDO_MAP_NAME_MAX + 1];uint32_t type;const char *type_name;