From 8432ddc822ac98f64ae87a2b1352bf76ffc6c90e Mon Sep 17 00:00:00 2001 From: Ajay Dudani Date: Fri, 21 Nov 2014 11:57:29 -0800 Subject: [PATCH] system/core: Remove AID_GRAPHICS from adb groups Remove AID_GRAPHICS from adb access groups to limit framebuffer access. Change-Id: I7fc6dca8b02a45d67d1ecc4a4daf6c38741ffb94 --- adb/adb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/adb/adb.c b/adb/adb.c index a6a4636d5..1834472fe 100644 --- a/adb/adb.c +++ b/adb/adb.c @@ -1348,14 +1348,13 @@ int adb_main(int is_daemon, int server_port) ** AID_LOG to read system logs (adb logcat) ** AID_INPUT to diagnose input issues (getevent) ** AID_INET to diagnose network issues (netcfg, ping) - ** AID_GRAPHICS to access the frame buffer ** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump) ** AID_SDCARD_R to allow reading from the SD card ** AID_SDCARD_RW to allow writing to the SD card ** 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_R, AID_SDCARD_RW, + gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_NET_BT, + AID_NET_BT_ADMIN, AID_SDCARD_R, AID_SDCARD_RW, AID_NET_BW_STATS }; if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) { exit(1);