Removed the 'ucred' stuff. It's insecure and it doesn't work on FreeBSD anyway.
authorArt Cancro <ajc@citadel.org>
Mon, 28 Aug 2023 15:19:42 +0000 (11:19 -0400)
committerArt Cancro <ajc@citadel.org>
Mon, 28 Aug 2023 15:19:42 +0000 (11:19 -0400)
citadel/server/sysdep.c

index f6e34a3dd00b766ceef337fcc540c5a9f33c5bfd..ee69a19c7272a8723d690bcbf9ae3aaafc2ff7c0 100644 (file)
@@ -193,9 +193,6 @@ int ctdl_uds_server(char *sockpath, int queue_len) {
        int s;
        int i;
        int actual_queue_len;
-#ifdef HAVE_STRUCT_UCRED
-       int passcred = 1;
-#endif
 
        actual_queue_len = queue_len;
        if (actual_queue_len < 5) actual_queue_len = 5;
@@ -233,10 +230,6 @@ int ctdl_uds_server(char *sockpath, int queue_len) {
                return(-1);
        }
 
-#ifdef HAVE_STRUCT_UCRED
-       setsockopt(s, SOL_SOCKET, SO_PASSCRED, &passcred, sizeof(passcred));
-#endif
-
        chmod(sockpath, S_ISGID|S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IWOTH|S_IXOTH);
        return(s);
 }