commit | 092640363bfadcccc12201b36cb8050e7c0a5a56 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Thu Jan 19 13:11:35 2012 -0800 |
committer | Nick Kralevich <nnk@google.com> | Thu Jan 19 15:06:14 2012 -0800 |
tree | 716a9d686af03675e0141a3df7aa0560a00bdaef | |
parent | cdcc02e70ed92278988308ea3b372470bb1fc68a [diff] [blame] |
Don't allow adb to run as root in user builds. Change-Id: I4fbd7beb7f76c68fead1a89b745f0dfb931b4597
diff --git a/adb.c b/adb.c index ff9e92d..4434524 100644 --- a/adb.c +++ b/adb.c
@@ -844,6 +844,9 @@ #if !ADB_HOST static int should_drop_privileges() { +#ifndef ALLOW_ADBD_ROOT + return 1; +#else /* ALLOW_ADBD_ROOT */ int secure = 0; char value[PROPERTY_VALUE_MAX]; @@ -869,6 +872,7 @@ } } return secure; +#endif /* ALLOW_ADBD_ROOT */ } #endif /* !ADB_HOST */