Add DEFAULT_PIVOT_ROOT var which can be changed at build time.
This allows the default pivot root included with the
minimalistic-mountns profile to be defined at build time. If it is not
set the original value /var/empty is used.
Bug: crbug.com/933582
Test: minijail builds successfully on both Android and CrOS
Change-Id: Ifa167d3d5d5725667b0d20ad47724af4abc24ae0
diff --git a/Android.bp b/Android.bp
index 7bce0f1..5cd7966 100644
--- a/Android.bp
+++ b/Android.bp
@@ -35,6 +35,7 @@
cflags: [
"-D_FILE_OFFSET_BITS=64",
"-DALLOW_DEBUG_LOGGING",
+ "-DDEFAULT_PIVOT_ROOT=\"/var/empty\"",
"-Wall",
"-Werror",
],