eBPF-based security platform
status: hold upatch names to their full length
Daniel Borkmann89969893cd88
diff --git a/builtin-status.c b/builtin-status.cindex 6ee0d2af..44899dd3 100644--- a/builtin-status.c+++ b/builtin-status.c@@ -170,7 +170,7 @@ struct ev_proj {char type[24];char digest[65];char set_digest[65];- char up_name[128];+ char up_name[SHIRUDO_UPATCH_NAME_MAX + 1];char up_payload[65];};diff --git a/util/upatch_table.h b/util/upatch_table.hindex b96b525c..6b960c93 100644--- a/util/upatch_table.h+++ b/util/upatch_table.h@@ -11,13 +11,14 @@#include <stddef.h>#include <shirudo/misc.h>+#include <shirudo/upatch.h>#include "upatch_resolve.h"struct shirudo_json_emit;struct shirudo_upatch_table_row {- char name[64];+ char name[SHIRUDO_UPATCH_NAME_MAX + 1];char location[SHIRUDO_UPATCH_LOCATION_MAX]; /* SEC()-style */char loaded_at[32]; /* ISO-8601 UTC, "" if unknown */char status[64]; /* success or a tree skip reason */