From 8e8648463d74005ac3111235b6bdea9c79d7a34a Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Mon, 5 Feb 2018 06:32:07 -0800 Subject: [PATCH] libcutils: Add "daemon" and "bin" users for testing only Multiple LTP tests require a "daemon" or "bin" user. These user ids have been defined since UNIX incept, and even up to the '80s remained in many of the tools as hard coded values. Add these two ids with a cautionary note. Test: compile Bug: 31152327 Bug: 31226046 Bug: 32385889 Change-Id: Ida2fb6d817b8ada0624870439fcf848667b31fb3 --- libcutils/include/private/android_filesystem_config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libcutils/include/private/android_filesystem_config.h b/libcutils/include/private/android_filesystem_config.h index fc354f100..5d17698de 100644 --- a/libcutils/include/private/android_filesystem_config.h +++ b/libcutils/include/private/android_filesystem_config.h @@ -55,6 +55,9 @@ */ #define AID_ROOT 0 /* traditional unix root user */ +/* The following are for LTP and should only be used for testing */ +#define AID_DAEMON 1 /* traditional unix daemon owner */ +#define AID_BIN 2 /* traditional unix binaries owner */ #define AID_SYSTEM 1000 /* system server */