From 0448151c0acdf770c8033f10aae6cf6303805eb6 Mon Sep 17 00:00:00 2001 From: Anees Rehman Date: Thu, 24 Sep 2026 10:00:09 +0200 Subject: [PATCH] svc: allow longer user and group names Service user and group names are stored in 16-byte buffers, limiting them to 15 characters. This silently truncates longer names before getpwnam() and getgrnam(), preventing services configured with valid longer account names from starting. Increase the buffers to match the existing maximum configuration argument length. Signed-off-by: Anees Rehman --- src/svc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/svc.h b/src/svc.h index 1d4b46e3..fc3d5a13 100644 --- a/src/svc.h +++ b/src/svc.h @@ -100,7 +100,7 @@ typedef enum { #define MAX_IDENT_LEN (MAX_ARG_LEN + MAX_ID_LEN + 1) #define MAX_STR_LEN 64 #define MAX_COND_LEN (MAX_ARG_LEN * 3) -#define MAX_USER_LEN 16 +#define MAX_USER_LEN MAX_ARG_LEN #define MAX_NUM_SUPGROUPS 4 #define MAX_NUM_FDS 64 /* Max number of I/O plugins */ #define MAX_NUM_SVC_ARGS 64