diff options
author | Christian Pointner <equinox@anytun.org> | 2008-04-11 15:26:41 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-04-11 15:26:41 +0000 |
commit | 2dcab0372d9b7604aee8e0034599a5a2cbb66613 (patch) | |
tree | e38740d6c6f01d97f9b225c783c2cbfe648166cb /options.h | |
parent | added basic config files (diff) |
added chroot and drop privileges
added write-pid option
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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_; |