Skip to content

eBPF-based security platform

testing: include tss2 ahead of the integer poison in the fault helper

Daniel Borkmann834da3cc036d
diff --git a/testing/helper/image-fault.c b/testing/helper/image-fault.c
index 7236306e..9eb61cd0 100644
--- a/testing/helper/image-fault.c
+++ b/testing/helper/image-fault.c
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: BSD-2-Clause
/* Copyright (c) 2026 Authors of shirudo */
-#include <shirudo/misc.h>
-
#include <errno.h>
#include <fcntl.h>
#include <linux/fs.h>
@@ -14,6 +12,9 @@
#include <unistd.h>
#include <bpf/bpf.h>
+#include <tss2/tss2_esys.h>
+
+#include <shirudo/misc.h>
#include "image-fault.h"
#include "util/config_image.h"
diff --git a/testing/helper/image-fault.h b/testing/helper/image-fault.h
index 8d625ed2..e19c9f79 100644
--- a/testing/helper/image-fault.h
+++ b/testing/helper/image-fault.h
@@ -4,10 +4,10 @@
#ifndef SHIRUDO_TEST_IMAGE_FAULT_H
#define SHIRUDO_TEST_IMAGE_FAULT_H
-#include <shirudo/misc.h>
-
#include <tss2/tss2_esys.h>
+#include <shirudo/misc.h>
+
#include "util/image_guards.h"
int __real_shirudo_config_root_begin(const __u8 root[32],