aboutsummaryrefslogtreecommitdiffstats
path: root/init/device_perms.h
blob: dbd6ca4269e489bb3e3b1b33d972d24603964b29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Overload this file in your own device-specific config if you need
// non-standard property_perms and/or control_perms structs
//
// To avoid conflicts...
// if you redefine property_perms, #define PROPERTY_PERMS there
// if you redefine control_perms, #define CONTROL_PARMS there
//
// A typical file will look like:
//
/*

#define CONTROL_PERMS

struct {
    const char *service;
    unsigned int uid;
    unsigned int gid;
} control_perms[] = {
    // The default perms
    { "dumpstate",AID_SHELL, AID_LOG },
    { "ril-daemon",AID_RADIO, AID_RADIO },
    // My magic device perms
    { "rawip_vsnet1",AID_RADIO, AID_RADIO },
    { "rawip_vsnet2",AID_RADIO, AID_RADIO },
    { "rawip_vsnet3",AID_RADIO, AID_RADIO },
    { "rawip_vsnet4",AID_RADIO, AID_RADIO },
     {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 },
*/