summaryrefslogtreecommitdiffstats
path: root/run-as
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-01-23 11:00:36 -0800
committerNick Kralevich <nnk@google.com>2012-01-23 11:10:06 -0800
commitb2d8f896b6ef081c1af263dd13d91d2f435de0fa (patch)
tree7d99fb0076018fde478332387c730b7ca5a3bbb9 /run-as
parent6ca9d204cdfe2a474335451d3068ede4a712dce2 (diff)
downloadsystem_core-b2d8f896b6ef081c1af263dd13d91d2f435de0fa.zip
system_core-b2d8f896b6ef081c1af263dd13d91d2f435de0fa.tar.gz
system_core-b2d8f896b6ef081c1af263dd13d91d2f435de0fa.tar.bz2
Don't statically compile run-as
Bug: 5904033 Change-Id: Ie815f09a2bf51ad583ded82f652d162a7f70b87e
Diffstat (limited to 'run-as')
-rw-r--r--run-as/Android.mk4
-rw-r--r--run-as/run-as.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/run-as/Android.mk b/run-as/Android.mk
index 326f5af..043cc3a 100644
--- a/run-as/Android.mk
+++ b/run-as/Android.mk
@@ -5,8 +5,4 @@ LOCAL_SRC_FILES:= run-as.c package.c
LOCAL_MODULE:= run-as
-LOCAL_FORCE_STATIC_EXECUTABLE := true
-
-LOCAL_STATIC_LIBRARIES := libc
-
include $(BUILD_EXECUTABLE)
diff --git a/run-as/run-as.c b/run-as/run-as.c
index d2a44e1..20e1530 100644
--- a/run-as/run-as.c
+++ b/run-as/run-as.c
@@ -41,9 +41,9 @@
*
* - This program should only run for the 'root' or 'shell' users
*
- * - Statically link against the C library, and avoid anything that
- * is more complex than simple system calls until the uid/gid has
- * been dropped to that of a normal user or you are sure to exit.
+ * - Avoid anything that is more complex than simple system calls
+ * until the uid/gid has been dropped to that of a normal user
+ * or you are sure to exit.
*
* This avoids depending on environment variables, system properties
* and other external factors that may affect the C library in