From 96e962a08c12ef14f1eef3b5db41204a36f91722 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 14 Aug 2020 16:17:29 -0400 Subject: Build environment for services --- service.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'service.c') diff --git a/service.c b/service.c index b6e6ce1..7087e38 100644 --- a/service.c +++ b/service.c @@ -14,17 +14,21 @@ * along with this program. If not, see . */ -#include -#include +#include #include #include #include +#include #include "daemon.h" const char *serviceDir = "/"; -struct passwd *serviceUser; -struct group *serviceGroup; +uid_t serviceUID; +gid_t serviceGID; +char *serviceEnviron[EnvironLen] = { + [SHELL] = "SHELL=" _PATH_BSHELL, + [PATH] = "PATH=" _PATH_DEFPATH, +}; struct Prepend prepend; struct Services services; -- cgit 1.4.1