added group and user set[uid|gid] capability at unit definition level

This commit is contained in:
Master
2020-06-29 02:22:11 -04:00
parent 3517b9cc11
commit f4a38de0c0
13 changed files with 236 additions and 43 deletions

View File

@@ -59,6 +59,14 @@ private:
// if rectifier exits on non-zero return code, it should be trigger the behaviour indicated by required
bool rectify;
// user to run process as.
// not intended for protected accounts, handle your own security
std::string user;
// group to run process as.
// not intended for protected accounts, handle your own security
std::string group;
public:
Unit( int LOG_LEVEL );
@@ -76,6 +84,8 @@ public:
bool get_active();
bool get_required();
bool get_rectify();
std::string get_user();
std::string get_group();
private:
int LOG_LEVEL;