kernel: Add the ability to get active managers for multi-manager APKs

This commit is contained in:
ShirkNeko
2025-07-06 00:25:42 +08:00
parent ed95981d09
commit 6e0fb0b388
4 changed files with 70 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
#define CMD_ENABLE_KPM 100
#define CMD_DYNAMIC_SIGN 103
#define CMD_GET_MANAGERS 104
#define EVENT_POST_FS_DATA 1
#define EVENT_BOOT_COMPLETED 2
@@ -55,6 +56,14 @@ struct dynamic_sign_user_config {
char hash[65];
};
struct manager_list_info {
int count;
struct {
uid_t uid;
int signature_index;
} managers[2];
};
struct root_profile {
int32_t uid;
int32_t gid;