From 3343ca2380dc6ccea641dc3b99156c2d15c2f9d8 Mon Sep 17 00:00:00 2001 From: Yinchu Chen Date: Fri, 25 Aug 2023 04:22:06 +0000 Subject: [PATCH] Increase the number of service supplementary group OEM can add self-owned groups, but the system init cannot support if the group numbers are over than 12, relax some restrictions as appropriate. Bug: b/296826987 Signed-off-by: Haichao Li Change-Id: I231d9f6c82e93c08bc97ca32df70e5b28760acbc --- init/service.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/service.h b/init/service.h index b858eeff0..9f09cefb8 100644 --- a/init/service.h +++ b/init/service.h @@ -60,7 +60,7 @@ #define SVC_GENTLE_KILL 0x2000 // This service should be stopped with SIGTERM instead of SIGKILL // Will still be SIGKILLed after timeout period of 200 ms -#define NR_SVC_SUPP_GIDS 12 // twelve supplementary groups +#define NR_SVC_SUPP_GIDS 32 // thirty two supplementary groups namespace android { namespace init {