add: drop privileges

This commit is contained in:
Tobias Reisinger 2020-06-19 00:26:49 +02:00
parent 486b45c680
commit 1d8408581a
6 changed files with 118 additions and 7 deletions

View file

@ -26,6 +26,8 @@ typedef struct
{
char *file;
char database[256];
char user[256];
char group[256];
log_level_t log_level;
run_type_t run_type;
char server_port[6];

View file

@ -14,4 +14,7 @@ helper_parse_cli(int argc, const char **argv, config_t *config);
int
helper_get_weekday(const struct tm *time_struct);
int
helper_drop_privileges();
#endif /* CORE_HELPERS_H */