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

Commit b415390e authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 1778 into donut

* changes:
  init: Create new 'vpn' user/group and set owner of '/dev/tun' to it.
parents e398151e 4a6f2321
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@
#define AID_MEDIA         1013  /* mediaserver process */
#define AID_DHCP          1014  /* dhcp client */
#define AID_SDCARD_RW     1015  /* external storage write access */
#define AID_VPN           1016  /* vpn system */

#define AID_SHELL         2000  /* adb and debug shell user */
#define AID_CACHE         2001  /* cache access */
@@ -95,6 +96,7 @@ static struct android_id_info android_ids[] = {
    { "net_bt_admin", AID_NET_BT_ADMIN, },
    { "net_bt",    AID_NET_BT, },
    { "sdcard_rw", AID_SDCARD_RW, },
    { "vpn",       AID_VPN, },
    { "inet",      AID_INET, }, 
    { "net_raw",   AID_NET_RAW, },
    { "misc",      AID_MISC, },
+1 −0
Original line number Diff line number Diff line
@@ -131,6 +131,7 @@ static struct perms_ devperms[] = {
    { "/dev/qmi0",          0640,   AID_RADIO,      AID_RADIO,      0 },
    { "/dev/qmi1",          0640,   AID_RADIO,      AID_RADIO,      0 },
    { "/dev/qmi2",          0640,   AID_RADIO,      AID_RADIO,      0 },
    { "/dev/tun",           0640,   AID_VPN  ,      AID_VPN,        0 },
    { NULL, 0, 0, 0, 0 },
};