]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
unix sockets need permissions, uid, and gid
authorAlan T. DeKok <aland@freeradius.org>
Thu, 11 Jan 2024 14:06:27 +0000 (09:06 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 11 Jan 2024 16:36:31 +0000 (11:36 -0500)
src/lib/util/socket.h

index cdd05d8c3dcacaa451559712457e06c69a003b76..1c80c5e2443903f109b35f24585a26880abfafd3 100644 (file)
@@ -72,7 +72,10 @@ typedef struct {
                } inet;
 
                struct {
-                       char const *path;               //!< Unix socket path.
+                       char const      *path;          //!< Unix socket path.
+                       mode_t          perm;
+                       uid_t           uid;
+                       gid_t           gid;
                } unix;
        };
        int af;                 //!< AF_INET, AF_INET6, or AF_UNIX