fw: Remove TK1_SYSCALL_REG_MGMT

Validate preload API access using the fixed, pre-calculated app digest
instead of letting an app register itself as a management app.
This commit is contained in:
Mikael Ågren 2025-03-25 16:02:33 +01:00
parent 715d792d86
commit b837eec9e6
No known key found for this signature in database
GPG key ID: E02DA3D397792C46
8 changed files with 30 additions and 121 deletions

View file

@ -56,7 +56,7 @@ int preload_store(struct partition_table *part_table, uint32_t offset,
uint8_t *data, size_t size, uint8_t to_slot)
{
/* Check if we are allowed to store */
if (!mgmt_app_authenticate(&part_table->mgmt_app_data)) {
if (!mgmt_app_authenticate()) {
return -3;
}
@ -88,7 +88,7 @@ int preload_store_finalize(struct partition_table *part_table, size_t app_size,
}
/* Check if we are allowed to store */
if (!mgmt_app_authenticate(&part_table->mgmt_app_data)) {
if (!mgmt_app_authenticate()) {
return -3;
}
@ -124,7 +124,7 @@ int preload_delete(struct partition_table *part_table, uint8_t slot)
}
/* Check if we are allowed to deleted */
if (!mgmt_app_authenticate(&part_table->mgmt_app_data)) {
if (!mgmt_app_authenticate()) {
return -3;
}