Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2c2b10b authored by Mike Kasick's avatar Mike Kasick
Browse files

init: Allow device-specific appends to the property service permission structs

Extends device_perms.h API to allow property_perms and control_perms to be
appended on a device-specific basis, without needing to redefine the entire
struct contents.
parent 40b7fa29
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -27,3 +27,13 @@ struct {
     {NULL, 0, 0 }
};
*/

// Alternatively you can append to the existing property_perms and/or
// control_perms structs with the following:
/*
#define CONTROL_PERMS_APPEND \
    { "rawip_vsnet1",AID_RADIO, AID_RADIO }, \
    { "rawip_vsnet2",AID_RADIO, AID_RADIO }, \
    { "rawip_vsnet3",AID_RADIO, AID_RADIO }, \
    { "rawip_vsnet4",AID_RADIO, AID_RADIO },
*/
+6 −0
Original line number Diff line number Diff line
@@ -93,6 +93,9 @@ struct {
    { "persist.security.",AID_SYSTEM,   0 },
    { "net.pdp",          AID_RADIO,    AID_RADIO },
    { "service.bootanim.exit", AID_GRAPHICS, 0 },
#ifdef PROPERTY_PERMS_APPEND
PROPERTY_PERMS_APPEND
#endif
    { NULL, 0, 0 }
};
/* Avoid extending this array. Check device_perms.h */
@@ -110,6 +113,9 @@ struct {
} control_perms[] = {
    { "dumpstate",AID_SHELL, AID_LOG },
    { "ril-daemon",AID_RADIO, AID_RADIO },
#ifdef CONTROL_PERMS_APPEND
CONTROL_PERMS_APPEND
#endif
     {NULL, 0, 0 }
};
/* Avoid extending this array. Check device_perms.h */