eBPF-based security platform
treewide: drop stores that no path reads
Daniel Borkmann553ca656dc03
diff --git a/builtin-bpm.c b/builtin-bpm.cindex f897963e..0eef6654 100644--- a/builtin-bpm.c+++ b/builtin-bpm.c@@ -2020,7 +2020,6 @@ static int tree_recover_pending(const struct tree_publication *pub,/* Still pre-operation; retry normally. */if (!ret)return 0;- applied = true;}if (!event_present) {ret = tree_event_append(op->seq, op->operation_digest, next);diff --git a/builtin-upatch.c b/builtin-upatch.cindex 24c341bd..258cade8 100644--- a/builtin-upatch.c+++ b/builtin-upatch.c@@ -2259,7 +2259,6 @@ static int upatch_apply(struct upatch *u, const char *label, bool verify_only,rep_fail(rep, "payload_load", "unknown", err,"shirudo_sock_policy binding failed");close(policy_map_fd);- policy_map_fd = -1;ret = 1;goto out;}@@ -2285,14 +2284,10 @@ static int upatch_apply(struct upatch *u, const char *label, bool verify_only,goto out;}if ((__s32)retval < 0) {- if (policy_map_fd >= 0) {+ if (policy_map_fd >= 0)close(policy_map_fd);- policy_map_fd = -1;- }- if (socket_policy_map_fd >= 0) {+ if (socket_policy_map_fd >= 0)close(socket_policy_map_fd);- socket_policy_map_fd = -1;- }/** The loader closed what it made before it failed; the* numbers left in the context name nothing of ours now.diff --git a/tools/shirudo-build/package.c b/tools/shirudo-build/package.cindex 1c157d4d..d6faf3bc 100644--- a/tools/shirudo-build/package.c+++ b/tools/shirudo-build/package.c@@ -1525,7 +1525,6 @@ static int build_prog_metadata(struct bpf_object *obj, __u32 nr_maps,goto err_free;}md = grown;- md_alloc_len = len;}targets.magic = cpu_to_le32(UPATCH_UPROBE_TARGET_MAGIC);targets.version = cpu_to_le32(UPATCH_UPROBE_TARGET_VERSION);diff --git a/util/upatch.c b/util/upatch.cindex aa524667..ee91956f 100644--- a/util/upatch.c+++ b/util/upatch.c@@ -78,7 +78,6 @@ static int parse_header(const __u8 *m, size_t n,out->type = get_le32(p);p += 4;out->reserved1 = get_le32(p);- p += 4;if (out->reserved1 != 0)return -EINVAL;return 0;diff --git a/util/upatch_maps_otel.c b/util/upatch_maps_otel.cindex fceefdb6..f78a1f91 100644--- a/util/upatch_maps_otel.c+++ b/util/upatch_maps_otel.c@@ -1098,7 +1098,6 @@ int otel_retry_after(const char *value, time_t now, __u64 *seconds)*seconds = min(delay, 30U);return 0;}- parsed = 0;memset(&date, 0, sizeof(date));end = strptime(value, "%a, %d %b %Y %H:%M:%S GMT", &date);parsed = !!end;