Skip to content

eBPF-based security platform

status: remove unused keyring seen field

Tobias Klausere7df5460013e
diff --git a/builtin-status.c b/builtin-status.c
index facc4e7e..cd2a03d9 100644
--- a/builtin-status.c
+++ b/builtin-status.c
@@ -1487,7 +1487,6 @@ static void status_cond_input(struct status_view *v)
v->keyring_pinned >= 1 &&
v->keyring_serial == v->keyring_pinned,
.tpm_reachable = t->cst.tpm,
- .ks_seen = v->keyring_present,
.ksp_seen = v->keyring_pinned >= 1,
.ksm_seen = v->keyring_present &&
v->keyring_pinned >= 1,
diff --git a/testing/helper/test-conditions.c b/testing/helper/test-conditions.c
index 9df2fa9e..cdf50bbf 100644
--- a/testing/helper/test-conditions.c
+++ b/testing/helper/test-conditions.c
@@ -66,7 +66,6 @@ int main(int argc, char **argv)
in.keyring_mode = mode;
in.keyring_serial = serial;
in.keyring_serial_pinned = pinned;
- in.ks_seen = in.keyring_present;
in.ksp_seen = pinned >= 1;
in.ksm_seen = in.keyring_present && pinned >= 1;
in.keyring_serial_matches = in.ksm_seen && serial == pinned;
diff --git a/util/conditions.h b/util/conditions.h
index f8041b2e..a6fd7939 100644
--- a/util/conditions.h
+++ b/util/conditions.h
@@ -29,7 +29,7 @@ struct conditions_input {
__s64 keyring_serial;
__s64 keyring_serial_pinned;
int keyring_serial_matches; /* 0/1 if ksm_seen */
- int ks_seen, ksp_seen, ksm_seen;
+ int ksp_seen, ksm_seen;
int bpf_unfrozen; /* links init did not freeze */
int dmv_present; /* the .dm-verity keyring exists */
__s64 dmv_serial;