winix can drop privileges now (if started as the root)

added parameters to the config:
 user (string)
 group (string)
 additional_groups (bool)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@668 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-10-24 17:49:38 +00:00
parent 149fd1629f
commit 9c34cb5862
7 changed files with 268 additions and 18 deletions

View File

@@ -89,6 +89,10 @@ bool Config::ReadConfig(bool errors_to_stdout_, bool stdout_is_closed)
void Config::AssignValues(bool stdout_is_closed)
{
user = Text("user");
group = Text("group");
additional_groups = Bool("additional_groups", true);
log_file = Text("log_file");
log_notify_file = Text("log_notify_file");
log_delimiter = Text("log_delimiter", "---------------------------------------------------------------------------------");