From 7e2a3581ac89246d66e00fb007ff388f45a138ba Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 28 Aug 2023 11:19:42 -0400 Subject: [PATCH] Removed the 'ucred' stuff. It's insecure and it doesn't work on FreeBSD anyway. --- citadel/server/sysdep.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/citadel/server/sysdep.c b/citadel/server/sysdep.c index f6e34a3dd..ee69a19c7 100644 --- a/citadel/server/sysdep.c +++ b/citadel/server/sysdep.c @@ -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); } -- 2.39.2