kernel: minor fixes for profiles

This commit is contained in:
weishu
2023-06-03 10:18:11 +08:00
parent bd3a1291da
commit 89f6cd044e
2 changed files with 24 additions and 18 deletions

View File

@@ -37,7 +37,7 @@
#define KSU_MAX_GROUPS 32
#define KSU_SELINUX_DOMAIN 64
struct root_identity {
struct root_profile {
int32_t uid;
int32_t gid;
@@ -50,6 +50,10 @@ struct root_identity {
int32_t namespaces;
};
struct non_root_profile {
bool umount_modules;
};
struct app_profile {
// this is usually the package of the app, but can be other value for special apps
char key[KSU_MAX_PACKAGE_NAME];
@@ -61,13 +65,14 @@ struct app_profile {
bool use_default;
char template_name[KSU_MAX_PACKAGE_NAME];
struct root_identity identity;
} root_profile;
struct root_profile profile;
} rp_config;
struct {
bool use_default;
bool umount_modules;
} non_root_profile;
struct non_root_profile profile;
} nrp_config;
};
};