Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Dec 31, 2023
2 parents c343a05 + 4be7485 commit 9be32e4
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions scripts/allowlist.bt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

// Define the root_profile structure with padding for 64-bit alignment.
struct root_profile {
int uid;
int gid;
uint32 uid;
uint32 gid;

int groups_count;
int groups[KSU_MAX_GROUPS];
uint32 groups_count;
uint32 groups[KSU_MAX_GROUPS];
char padding1[4]; // Padding for 64-bit alignment.

struct {
Expand All @@ -20,7 +20,7 @@ struct root_profile {

char selinux_domain[KSU_SELINUX_DOMAIN];

int namespaces;
uint32 namespaces;
char padding2[4]; // Padding for 64-bit alignment.
};

Expand All @@ -33,18 +33,20 @@ struct non_root_profile {
// Define the rp_config structure with padding for 64-bit alignment.
struct rp_config_t {
byte use_default;
char padding[7]; // Padding to make the total size a multiple of 8.

char template_name[KSU_MAX_PACKAGE_NAME];
char padding[7]; // Padding to make the total size a multiple of 8.

struct root_profile profile;
};

// Define the nrp_config structure with padding for 64-bit alignment.
struct nrp_config_t {
byte use_default;
char padding[7]; // Padding to make the total size a multiple of 8.
char padding1[7]; // Padding to make the total size a multiple of 8.

struct non_root_profile profile;
char padding2[488]; // Padding to align the union
};

// Define the main app_profile structure
Expand Down Expand Up @@ -79,7 +81,9 @@ if (header.magic != 0x7f4b5355) {

FSeek(8); // Skip the header


// Continually read app_profile instances until end of file
while (!FEof()) {
app_profile profile;
}

0 comments on commit 9be32e4

Please sign in to comment.