eBPF-based security platform
bpf/lib: rename verity_policy.h to verity.h
Daniel Borkmann615f21208e9c
diff --git a/bpf/bpf2.c b/bpf/bpf2.cindex c707111b..570f82d2 100644--- a/bpf/bpf2.c+++ b/bpf/bpf2.c@@ -6,7 +6,7 @@* These hooks track verity devices, restrict DM controls, and protect the* runtime/config mounts alongside the shared bpffs and BPF admission checks.*/-#include "verity_policy.h"+#include "verity.h"#include <bpf/bpf_endian.h>/*diff --git a/bpf/lib/verity_policy.h b/bpf/lib/verity.hsimilarity index 95%rename from bpf/lib/verity_policy.hrename to bpf/lib/verity.hindex 3feb9a43..dd57e326 100644--- a/bpf/lib/verity_policy.h+++ b/bpf/lib/verity.h@@ -1,8 +1,8 @@/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause *//* Copyright (c) 2026 Authors of shirudo */-#ifndef SHIRUDO_BPF_VERITY_POLICY_H-#define SHIRUDO_BPF_VERITY_POLICY_H+#ifndef SHIRUDO_BPF_VERITY_H+#define SHIRUDO_BPF_VERITY_H#include "lsm.h"@@ -103,4 +103,4 @@ static __always_inline bool shirudo_file_runtime(struct file *file)return device && device->kind == DEVICE_RUNTIME;}-#endif /* SHIRUDO_BPF_VERITY_POLICY_H */+#endif /* SHIRUDO_BPF_VERITY_H */diff --git a/bpf/seal.c b/bpf/seal.cindex 3a67141c..725b4eec 100644--- a/bpf/seal.c+++ b/bpf/seal.c@@ -2,7 +2,7 @@/* Copyright (c) 2026 Authors of shirudo *//* shirudo retains the writable-state label seal and trusts runtime execs. */-#include "verity_policy.h"+#include "verity.h"#include "xattr.h"/*