]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/radius/config.h
Apply owner/group/mode settings to a UNIX socket.
[stg.git] / projects / stargazer / plugins / other / radius / config.h
index 45ee521fdc9c3e151d8c677a59b3438751df917a..c70c7b0f2c94d67663bfb0a3d00e3850c56947c8 100644 (file)
@@ -28,6 +28,9 @@
 #include <map>
 #include <string>
 
+#include <unistd.h> // uid_t, gid_t
+#include <sys/stat.h> // mode_t
+
 namespace STG
 {
 
@@ -64,6 +67,10 @@ struct Config
     std::string portStr;
     uint16_t port;
     std::string key;
+
+    uid_t sockUID;
+    gid_t sockGID;
+    mode_t sockMode;
 };
 
 } // namespace STG