feat: SAS-R0 boot-time capability attestation - unimplemented feature blocks boot
- attest.c: subsystems report readiness, attest_check() before DSK handoff - FUCK [attest] require_<name>=1 (default) + not-ready -> lotus panic with feature errcode - wired: sealed_mem/pckc/sched/drr/fs_fat32_rw/net_wired + placeholders (pkg/brand/dkm/nvme/virtio/wlan/vmx/drr_real_mac) - negative test: require_pkg=1 -> boot-time PKG-E10 panic (verified); dev/release FUCK whitelist = STATUS.md undone items - CLAUDE.md whitelist rule updated
This commit is contained in:
@@ -36,6 +36,16 @@ static u32 net_device_count_impl(void) {
|
||||
return g_net_device_count;
|
||||
}
|
||||
|
||||
/* attest: 有线/无线设备计数(is_wireless 回调非空即视为无线) */
|
||||
void net_attest_counts(u32 *out_total, u32 *out_wireless) {
|
||||
u32 wireless = 0;
|
||||
for (u32 i = 0; i < g_net_device_count; i++) {
|
||||
if (g_net_devices[i].is_wireless) wireless++;
|
||||
}
|
||||
if (out_total) *out_total = g_net_device_count;
|
||||
if (out_wireless) *out_wireless = wireless;
|
||||
}
|
||||
|
||||
static int net_device_info_impl(u32 index, dkm_net_device_info *out) {
|
||||
if (!out) return -1;
|
||||
if (index >= g_net_device_count) return -2;
|
||||
|
||||
Reference in New Issue
Block a user