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

Commit 1351edeb authored by JP Abgrall's avatar JP Abgrall Committed by Android Git Automerger
Browse files

am 61b90bd2: adb: grant it AID_NET_BW_STATS for full /proc/net/xt_qtaguid/stats

* commit '61b90bd2':
  adb: grant it AID_NET_BW_STATS for full /proc/net/xt_qtaguid/stats
parents 39b6df11 61b90bd2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -907,9 +907,11 @@ int adb_main(int is_daemon, int server_port)
        ** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump)
        ** AID_SDCARD_RW to allow writing to the SD card
        ** AID_MOUNT to allow unmounting the SD card before rebooting
        ** AID_NET_BW_STATS to read out qtaguid statistics
        */
        gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS,
                           AID_NET_BT, AID_NET_BT_ADMIN, AID_SDCARD_RW, AID_MOUNT };
                           AID_NET_BT, AID_NET_BT_ADMIN, AID_SDCARD_RW, AID_MOUNT,
                           AID_NET_BW_STATS };
        if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) {
            exit(1);
        }