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

@@ -25,16 +25,6 @@ enum Manipulators { logsave, logsavenow, logend, log1, log2, log3 };
class Log
{
std::ostringstream buffer;
int log_level, current_level;
int item, item_save;
std::string log_file;
bool log_stdout;
std::ofstream file;
int lines;
void OpenFile();
public:
Log();
@@ -54,8 +44,20 @@ public:
Log & operator<<(Manipulators m);
void SystemErr(int err);
void SaveLog();
private:
std::ostringstream buffer;
int log_level, current_level;
int item, item_save;
std::string log_file;
bool log_stdout;
std::ofstream file;
int lines;
bool log_file_open;
void OpenFile();
};