mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
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 <anees.rehman@atlascopco.com>
This commit is contained in:
@@ -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_PROVIDES 4
|
||||
#define MAX_NUM_FDS 64 /* Max number of I/O plugins */
|
||||
|
||||
Reference in New Issue
Block a user