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 --- daemon.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'daemon.h') diff --git a/daemon.h b/daemon.h index d7efb28..2c77537 100644 --- a/daemon.h +++ b/daemon.h @@ -19,6 +19,7 @@ #include #include #include +#include typedef unsigned char byte; @@ -47,9 +48,20 @@ static inline int prependAdd(const char *command) { return 0; } +enum { + SHELL, + PATH, + LOGNAME, + USER, + HOME, + EnvironNull, + EnvironLen, +}; + extern const char *serviceDir; -extern struct passwd *serviceUser; -extern struct group *serviceGroup; +extern uid_t serviceUID; +extern gid_t serviceGID; +extern char *serviceEnviron[EnvironLen]; struct Service { char *name; -- cgit 1.4.1 ogger
summary refs log tree commit diff
Commit message (Collapse)Author
2019-12-30Remove scoop -ABCJune McEnroe
I can almost get these to work with an inner and outer SQL query, but when contexts starts overlapping it becomes a disaster, so I'm leavin it out at least for now.
2019-12-30Add limit option for litterbox's search query interfaceJune McEnroe