summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-04-11 15:26:41 +0000
committerChristian Pointner <equinox@anytun.org>2008-04-11 15:26:41 +0000
commit2dcab0372d9b7604aee8e0034599a5a2cbb66613 (patch)
treee38740d6c6f01d97f9b225c783c2cbfe648166cb /options.h
parentadded basic config files (diff)
added chroot and drop privileges
added write-pid option
Diffstat (limited to 'options.h')
-rw-r--r--options.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/options.h b/options.h
index 598250e..3b68780 100644
--- a/options.h
+++ b/options.h
@@ -57,6 +57,14 @@ public:
Options& setProgname(std::string p);
bool getDaemonize();
Options& setDaemonize(bool d);
+ bool getChroot();
+ Options& setChroot(bool b);
+ std::string getUsername();
+ Options& setUsername(std::string u);
+ std::string getChrootDir();
+ Options& setChrootDir(std::string c);
+ std::string getPidFile();
+ Options& setPidFile(std::string p);
sender_id_t getSenderId();
Options& setSenderId(sender_id_t s);
std::string getLocalAddr();
@@ -121,6 +129,10 @@ private:
ConnectToList connect_to_;
std::string progname_;
bool daemonize_;
+ bool chroot_;
+ std::string username_;
+ std::string chroot_dir_;
+ std::string pid_file_;
sender_id_t sender_id_;
std::string local_addr_;
std::string local_sync_addr_;