diff options
author | Nick Kralevich <nnk@google.com> | 2013-02-27 13:15:02 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-02-27 13:15:02 -0800 |
commit | 4c609e9683959193dafd7a32bb8393410cbddc74 (patch) | |
tree | b8b347c1259c7e3dde3f84ed4eeef9c81fa7800e /adb | |
parent | 09094e729b14e6b00a8ca25efae55a641d67826d (diff) | |
download | system_core-4c609e9683959193dafd7a32bb8393410cbddc74.zip system_core-4c609e9683959193dafd7a32bb8393410cbddc74.tar.gz system_core-4c609e9683959193dafd7a32bb8393410cbddc74.tar.bz2 |
Remove CAP_NET_RAW from adb
ping no longer needs CAP_NET_RAW. See:
* http://lwn.net/Articles/443051/
* https://android-review.googlesource.com/52090
* https://android-review.googlesource.com/52072
Eliminate the CAP_NET_RAW special case in adb
Change-Id: If9d32c5254291b123b06bededc94b64113f6b8f2
Diffstat (limited to 'adb')
-rw-r--r-- | adb/adb.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1195,8 +1195,7 @@ static void drop_capabilities_bounding_set_if_needed() { #endif int i; for (i = 0; prctl(PR_CAPBSET_READ, i, 0, 0, 0) >= 0; i++) { - if ((i == CAP_NET_RAW) || (i == CAP_SETUID) || (i == CAP_SETGID)) { - // CAP_NET_RAW needed by /system/bin/ping + if ((i == CAP_SETUID) || (i == CAP_SETGID)) { // CAP_SETUID CAP_SETGID needed by /system/bin/run-as continue; } |